/* The cold email funnel, shared (PM #8473) — what the sales page, the quiz,
   the order page and the welcome page all wear, on top of ../site.css and
   ../assets/v3.css. The funnel's own header, the starfield, the sky, the
   clock and the Deploy button. Each page's own rules are in its own sheet.

   One accent, --ce, an "r, g, b" triple. The quiz moves it stage by stage;
   everywhere else it is the arrival gold. Colour is the surface and the glow,
   never an edge. Dark only. */

body.ce { --ce: 245, 199, 106; background: var(--ground); }

/* ------------------------------------------------------------ the header */
/* The brand and one button. No site navigation on a funnel: every link off
   it is a buyer walking out. */

body.ce > header.ce-head { box-shadow: none; }
body.ce .ce-head .button {
  margin: 0;
  padding: 9px 22px;
  font-size: 15px;
  white-space: nowrap;
}
body.ce .ce-head .button::after { content: none; }

/* ------------------------------------------------------------ the sky */
/* The starfield, fixed behind everything; on the quiz, order and welcome
   pages a picture under it. Content sits above both. */

body.ce canvas.ce-stars {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}
body.ce main,
body.ce footer { position: relative; z-index: 1; }

body.ce .ce-sky {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}
body.ce .ce-sky img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease, transform 9s ease-out;
}
body.ce .ce-sky img.is-on { opacity: 1; transform: scale(1); }
/* a veil, darkest where the words sit, letting the edges of the picture show */
body.ce .ce-sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 56% at 50% 46%, rgba(2, 6, 13, 0.78), rgba(2, 6, 13, 0.34) 100%),
    linear-gradient(to bottom, rgba(2, 6, 13, 0.55), transparent 28%, transparent 72%, rgba(2, 6, 13, 0.75));
}

/* ------------------------------------------------------------ the clock */

body.ce .ce-clock {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  /* solid enough to ride over the offer when it sticks: nothing shows through */
  background: linear-gradient(rgba(var(--ce), 0.16), rgba(var(--ce), 0.16)), rgba(8, 10, 16, 0.94);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ece8e1;
}
body.ce .ce-clock svg { width: 44px; height: 44px; flex: none; rotate: -90deg; }
body.ce .ce-clock circle { fill: none; stroke-width: 4; }
body.ce .ce-clock .ring-bg { stroke: rgba(255, 255, 255, 0.12); }
body.ce .ce-clock .ring {
  stroke: rgb(var(--ce));
  stroke-linecap: round;
  stroke-dasharray: 113.1;          /* 2 * pi * 18 */
  stroke-dashoffset: var(--gone, 0);
  transition: stroke-dashoffset 0.25s linear;
}
body.ce .ce-clock b {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--ce));
}
body.ce .is-last-minute .ce-clock { background: linear-gradient(rgba(234, 120, 110, 0.22), rgba(234, 120, 110, 0.22)), rgba(8, 10, 16, 0.94); }
body.ce .is-last-minute .ce-clock .ring { stroke: #f0a49c; }
body.ce .is-last-minute .ce-clock b { color: #f6b3ab; animation: ce-pulse 1s ease-in-out infinite; }

/* ------------------------------------------------------------ Deploy */
/* The one solid button in the funnel. Everything before it is a ring. */

body.ce .pill.ce-deploy {
  padding: 20px 76px;
  background: linear-gradient(to bottom, #fbe3a8, rgb(var(--ce)));
  box-shadow: 0 0 0 1px rgba(255, 240, 200, 0.6), 0 0 56px -6px rgba(var(--ce), 0.85);
  color: #17130c;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: ce-glow 2.4s ease-in-out infinite;
}
body.ce .pill.ce-deploy:hover { filter: brightness(1.08); background: linear-gradient(to bottom, #fde9b8, rgb(var(--ce))); }
body.ce .pill.ce-deploy::after { content: '\2192'; }

@keyframes ce-glow {
  50% { box-shadow: 0 0 0 1px rgba(255, 240, 200, 0.8), 0 0 80px 0 rgba(var(--ce), 0.95); }
}
@keyframes ce-pulse { 50% { opacity: 0.55; } }
@keyframes ce-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ the offer */
/* One offer, drawn by offer.js from offers.json into a .ce-ob, the same on the
   quiz's reveal and the order page. Each part lands a beat after the last.
   .is-expired on an ancestor marks it run out; .is-locked, paid for. */

body.ce .ce-ob { display: grid; justify-items: center; width: 100%; }
body.ce .ce-ob > * { animation: ce-rise 0.7s cubic-bezier(.2, .7, .2, 1) both; }
body.ce .ce-ob > :nth-child(2) { animation-delay: 0.1s; }
body.ce .ce-ob > :nth-child(3) { animation-delay: 0.25s; }
body.ce .ce-ob > :nth-child(4) { animation: ce-price 1.1s cubic-bezier(.2, .7, .2, 1) 0.45s both; }
body.ce .ce-ob > :nth-child(n+5) { animation-delay: 0.8s; }
@keyframes ce-price {
  0%   { opacity: 0; transform: scale(0.6); filter: blur(12px); }
  60%  { opacity: 1; transform: scale(1.06); filter: blur(0); }
  100% { opacity: 1; transform: none; }
}

body.ce .b .ce-ob .ce-kind {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #e6e8ec;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.95);
}
body.ce .b .ce-ob .display { --d: clamp(52px, 7vw, 108px); text-wrap: balance; filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.75)); }
body.ce .b .ce-ob .ce-tagline {
  max-width: 24em;
  margin-top: clamp(14px, 1.6vw, 20px);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 300;
  line-height: 1.35;
  color: #fffaf3;
  text-wrap: balance;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.95);
}
body.ce .b .ce-ob .ce-price {
  margin-top: clamp(22px, 2.6vw, 32px);
  font-size: clamp(76px, 10vw, 140px);
  font-weight: 460;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fff3d6;
  text-shadow: 0 0 40px rgba(var(--ce), 0.75), 0 0 120px rgba(var(--ce), 0.45);
}
body.ce .b .ce-ob .ce-price span {
  display: block;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #e6e8ec;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95);
}
body.ce .b .ce-ob .ce-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(100%, 640px);
  margin: clamp(28px, 3vw, 40px) 0 0;
}
body.ce .ce-ob .ce-specs div {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(10, 12, 18, 0.72);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
body.ce .ce-ob .ce-specs dt { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: rgb(var(--ce)); }
body.ce .ce-ob .ce-specs dd { margin: 6px 0 0; font-size: 16.5px; line-height: 1.3; color: #fffaf3; }

body.ce .b .ce-ob .ce-block { width: min(100%, 640px); margin-top: clamp(28px, 3vw, 40px); text-align: left; }
body.ce .b .ce-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(var(--ce));
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95);
}
body.ce .b .ce-ob .ce-stack { display: grid; gap: 8px; margin: 0; }
body.ce .b .ce-ob .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.7);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  font-size: 16.5px;
  line-height: 1.4;
  color: #ece8e1;
  text-wrap: pretty;
}
body.ce .b .ce-ob .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));
}

/* the guarantee: the one warm, lit surface in the offer, a shield on its name */
body.ce .b .ce-ob .ce-promise {
  width: min(100%, 640px);
  margin-top: clamp(20px, 2.4vw, 28px);
  padding: 22px 26px;
  border-radius: 20px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(245, 199, 106, 0.24), transparent 70%),
    rgba(26, 20, 10, 0.82);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.16), 0 0 50px -16px rgba(245, 199, 106, 0.55);
  text-align: left;
}
body.ce .ce-ob .ce-promise .ce-block-head { color: #fbe3a8; }
body.ce .ce-ob .ce-promise .ce-block-head i {
  width: 18px;
  height: 20px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 20'%3E%3Cpath d='M9 1l7 3v5c0 4.6-3 8.2-7 10-4-1.8-7-5.4-7-10V4z' fill='%23f5c76a'/%3E%3Cpath d='M5.8 10.2l2.2 2.2 4.4-4.6' fill='none' stroke='%2314110b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body.ce .b .ce-ob .ce-promise-main { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.45; color: #fffaf3; }
body.ce .b .ce-ob .ce-promise-also { margin-top: 10px; font-size: 15.5px; line-height: 1.45; color: #d9cdb8; }

body.ce .b .ce-ob .ce-for {
  max-width: 34em;
  margin-top: clamp(26px, 3vw, 36px);
  font-size: 16.5px;
  line-height: 1.5;
  color: #d4d1cc;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.95);
}
/* scarcity: the spots, said plainly */
body.ce .b .ce-ob .ce-scarce {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 12px;
  max-width: 640px;
  margin-top: 22px;
  padding: 12px 20px;
  border-radius: 16px;
  background: linear-gradient(rgba(234, 120, 110, 0.16), rgba(234, 120, 110, 0.16)), rgba(24, 10, 12, 0.9);
  font-size: 15.5px;
  line-height: 1.4;
  color: #f4e6e2;
}
body.ce .b .ce-ob .ce-scarce b {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  color: #f6b3ab;
}

/* paying, where the offer is */
body.ce .ce-pay { display: grid; justify-items: center; width: min(100%, 640px); margin-top: clamp(28px, 3vw, 40px); scroll-margin-top: 90px; }
body.ce .ce-pay .checkout {
  max-width: none;
  margin-top: 0;
  background: rgba(10, 12, 18, 0.78);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 0 60px -20px rgba(var(--ce), 0.5);
}
body.ce .b .ce-secure { margin-top: 12px; font-size: 13.5px; color: #a9adb5; }

/* run out: the offer stays to read, quieter, under a stamp */
body.ce .is-expired .ce-ob { opacity: 0.55; filter: saturate(0.5); transition: opacity 0.8s ease, filter 0.8s ease; }
body.ce .is-expired .ce-ob .ce-price { text-decoration: line-through; text-decoration-thickness: 4px; text-decoration-color: rgba(240, 164, 156, 0.8); }
body.ce .is-expired .ce-clock { background: linear-gradient(rgba(234, 120, 110, 0.22), rgba(234, 120, 110, 0.22)), rgba(8, 10, 16, 0.94); }
body.ce .is-expired .ce-clock .ring { stroke: #f0a49c; }
body.ce .is-expired .ce-clock b { color: #f6b3ab; }
body.ce .ce-expired {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: min(100%, 640px);
  margin-top: clamp(28px, 3vw, 40px);
  padding: 24px;
  border-radius: 20px;
  background: rgba(40, 14, 16, 0.82);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}
body.ce .b .ce-expired-stamp {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6b3ab;
}
body.ce .b .ce-expired .ce-what { margin-top: 4px; }

body.ce .is-locked .ce-clock { background: linear-gradient(rgba(245, 199, 106, 0.24), rgba(245, 199, 106, 0.24)), rgba(8, 10, 16, 0.94); }

body.ce .b .ce-mailed {
  margin-top: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(95, 208, 160, 0.14);
  font-size: 14.5px;
  color: #d6f2e6;
}
body.ce .b .ce-mailed b { font-weight: 500; color: #fff; }

/* ------------------------------------------------------------ the dock */
/* The order and welcome pages: one centred column over the new planet. */

body.v3.ce-dockpage main > section.ce-dock[id] {
  --b-bg: transparent;
  --b-top: calc(var(--header-h) + clamp(40px, 6vh, 72px));
  min-height: 100svh;
}
body.ce-dockpage .ce-dock [hidden] { display: none !important; }
body.ce-dockpage .ce-dock > * { animation: ce-rise 0.7s cubic-bezier(.2, .7, .2, 1) both; }
body.ce-dockpage .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-dockpage .b .display { --d: clamp(42px, 5.6vw, 84px); text-wrap: balance; filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.75)); }
body.ce-dockpage .b .display span span { display: inline; padding: 0; margin: 0; }
body.ce-dockpage .ce-pkg { display: grid; justify-items: center; }
body.ce-dockpage .b .ce-what {
  max-width: 32em;
  margin: clamp(18px, 2.2vw, 26px) auto 0;
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 300;
  line-height: 1.5;
  color: #f1ede6;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.95);
}
body.ce-dockpage .b .ce-what a { color: rgb(var(--ce)); }
body.ce-dockpage .b .ce-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(var(--ce), 0.16);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fbe3a8;
}
body.ce-dockpage .ce-chip i {
  width: 16px;
  height: 16px;
  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));
}
body.ce-dockpage .ce-pick { display: grid; gap: 12px; width: min(100%, 460px); margin-top: 32px; }
body.ce-dockpage .ce-buy { display: grid; justify-items: center; width: 100%; }
body.ce-dockpage .ce-buy .checkout {
  max-width: 600px;
  background: rgba(10, 12, 18, 0.72);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 0 60px -20px rgba(var(--ce), 0.5);
}
body.ce-dockpage .b .ce-sign {
  margin-top: clamp(28px, 3vw, 40px);
  font-size: 17px;
  line-height: 1.5;
  color: #d4d1cc;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.95);
}

/* the welcome page's three next steps */
body.ce-dockpage .b .ce-next {
  display: grid;
  gap: 12px;
  width: min(100%, 680px);
  margin: clamp(36px, 4vw, 52px) auto 0;
  text-align: left;
}
body.ce-dockpage .b .ce-next > li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 24px 22px 18px;
  border-radius: 20px;
  background: rgba(10, 12, 18, 0.72);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}
body.ce-dockpage .ce-next i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--ce), 0.18);
  box-shadow: 0 0 24px -6px rgba(var(--ce), 0.6);
  font-style: normal;
  font-size: 17px;
  font-weight: 500;
  color: #fbe3a8;
}
body.ce-dockpage .ce-next h2 { font-size: clamp(21px, 2vw, 26px); line-height: 1.25; letter-spacing: -0.02em; color: #fffaf3; }
body.ce-dockpage .ce-next p { margin-top: 10px; }
body.ce-dockpage .b .ce-what .gap { display: block; margin-top: 10px; }
body.ce-dockpage .ce-next .pill { margin-top: 16px; padding: 12px 26px; font-size: 16px; }
body.ce-dockpage .b .ce-plan-mini { display: grid; gap: 8px; margin-top: 14px; }
body.ce-dockpage .ce-plan-mini li { font-size: 16px; line-height: 1.45; color: #d4d1cc; }
body.ce-dockpage .ce-plan-mini b { display: inline-block; min-width: 6.5em; font-weight: 500; color: rgb(var(--ce)); }

body.ce-dockpage footer { background: transparent; box-shadow: none; }

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

@media (max-width: 760px) {
  body.ce .ce-head .brand { font-size: 22px; }
  body.ce .ce-head .button { padding: 8px 16px; font-size: 14px; }
  body.ce .pill.ce-deploy { width: 100%; max-width: 360px; padding: 18px 24px; font-size: 19px; }
  body.ce .b .ce-ob .ce-specs { grid-template-columns: 1fr; }
  body.ce .b .ce-ob .ce-specs div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  body.ce .b .ce-ob .ce-specs dd { margin: 0; text-align: right; }
  body.ce .b .ce-ob .display { --d: clamp(44px, 12vw, 60px); }
  body.ce .b .ce-ob .ce-price { font-size: clamp(64px, 19vw, 88px); }
  body.ce .b .ce-ob .ce-stack li { font-size: 15.5px; padding: 12px 14px 12px 44px; }
  body.ce .b .ce-ob .ce-stack li::before { left: 15px; }
  body.ce .b .ce-ob .ce-promise { padding: 18px 18px 18px 20px; }
  body.ce-dockpage .b .ce-next > li { grid-template-columns: 1fr; gap: 12px; }
  body.ce-dockpage .ce-plan-mini b { display: block; }
}

/* ------------------------------------------------------------ still */

@media (prefers-reduced-motion: reduce) {
  body.ce *,
  body.ce *::before,
  body.ce *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Deploy and the line over it, centred under the offer wherever it is drawn */
body.ce .ce-close-out { display: grid; justify-items: center; width: 100%; }
body.ce-dockpage .ce-dock > .ce-clock { margin-bottom: clamp(22px, 2.6vw, 32px); }
body.ce-dockpage .ce-close-out .ce-what { margin-top: clamp(28px, 3vw, 40px); }
body.ce-dockpage .ce-close-out .ce-deploy { margin-top: 20px; border: 0; cursor: pointer; font-family: inherit; }
body.v3.ce-dockpage main > section.ce-dock[id] { overflow-x: clip; }
body.ce .ce-clock span { white-space: nowrap; }
body.ce .b .ce-ob .ce-scarce { text-wrap: balance; }
body.ce .b .ce-ob .ce-for { text-wrap: balance; }

/* the funnel's footer: the brand and one line, nothing to click away to */
body.ce footer { display: grid; justify-items: center; gap: 10px; text-align: center; }
body.ce footer .brand { margin-bottom: 0; }
body.ce .ce-foot { margin: 0; font-size: 13.5px; color: #8d929b; }
body.ce-dockpage .ce-next p + p { margin-top: 8px; }
