/* The cold email offer, the sales page (PM #8473) — page-only rules on top of
   ../site.css, ../assets/v3.css and ce.css. Rewritten whole on 12 Oct: the
   Agentic Agency rules it began as a copy of are gone.

   The page is set in space. The starfield (stars.js) runs behind every beat,
   so the beats after the hero carry no ground of their own (.ce-clear). Five
   beats: the number, what it is, the math, the formula, the quiz. No new
   tokens; colour is the surface and the glow, never an edge. */

body.ce-page { --b-y: clamp(80px, 9vw, 136px); }
body.v3.ce-page main > section.b.ce-clear[id] { --b-bg: transparent; }

/* before page.js has run, nothing hides; once it has, a beat lifts in */
html.ce-js body.ce-page .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .7, .2, 1); }
html.ce-js body.ce-page .rv.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ the hero */
/* the launch pad at night, and the one number on the page as big as it goes */

body.ce-page .b-hero { --pic-at: 50% 62%; }
body.ce-page .b-hero .hero-copy { bottom: clamp(48px, 8cqh, 96px); }
body.ce-page .b .ce-big {
  margin: 0;
  font-size: clamp(150px, 26vw, 340px);
  font-weight: 460;
  line-height: 0.86;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 6px 48px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 80px rgba(245, 199, 106, 0.25));
}
body.ce-page .b .ce-big span {
  display: inline-block;
  padding-bottom: 0.06em;
  background: linear-gradient(to bottom, #fffaf3 10%, #f4e3c4 55%, #d9b679 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.ce-page .b-hero .display { --d: clamp(40px, 4.6vw, 72px); margin-top: 8px; }

/* ------------------------------------------------------------ words */

body.ce-page .b .ce-say {
  max-width: 22em;
  margin: 0 auto;
  font-size: clamp(28px, 3.3vw, 46px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #f4efe7;
  text-wrap: balance;
}
body.ce-page .b .ce-say span { display: block; }
body.ce-page .b .ce-sub {
  max-width: 34em;
  margin: clamp(22px, 2.4vw, 32px) auto 0;
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 300;
  line-height: 1.5;
  color: #b9bcc3;
  text-wrap: balance;
}
body.ce-page .b .display { text-wrap: balance; }
body.ce-page #the-number { padding-bottom: clamp(32px, 4vw, 56px); }
body.v3.ce-page main > section#the-math[id] { padding-top: clamp(24px, 3vw, 48px); }

/* ------------------------------------------------------------ the math */
/* four numbers and the three multiplications between them, in one row */

body.ce-page .b .ce-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0 clamp(8px, 1vw, 16px);
  margin: 0 auto clamp(56px, 6vw, 88px);
}
body.ce-page .b .ce-node {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: clamp(26px, 2.6vw, 38px) 14px;
  border-radius: 22px;
  background:
    radial-gradient(110% 70% at 50% 0%, rgba(140, 168, 240, 0.14), transparent 70%),
    rgba(10, 14, 24, 0.66);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 48px 90px -42px rgba(0, 0, 0, 0.95);
}
body.ce-page .ce-node b {
  font-size: clamp(46px, 4.6vw, 76px);
  font-weight: 460;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: #fffaf3;
}
body.ce-page .ce-node span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a9adb5;
}
body.ce-page .b .ce-node-gold {
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(245, 199, 106, 0.3), transparent 72%),
    rgba(30, 22, 10, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.18), 0 0 70px -20px rgba(245, 199, 106, 0.6);
}
body.ce-page .ce-node-gold b {
  background: linear-gradient(to bottom, #fffaf3 10%, #f4e3c4 55%, #d9b679 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.ce-page .ce-node-gold span { color: #e6d6c0; }

/* the multiplication: the rate over an arrow */
body.ce-page .ce-op {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 7.5em;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: #e6d6c0;
  text-align: center;
}
body.ce-page .ce-op::after {
  content: '';
  width: 40px;
  height: 12px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M1 6h36M32 1l5 5-5 5' fill='none' stroke='%23e3bf8e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ the formula */
/* a flight plan: a line down the left, a dot per step, lit as it passes */

body.ce-page .b .ce-plan {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(100%, 780px);
  margin: clamp(44px, 5vw, 64px) auto 0;
  text-align: left;
  counter-reset: none;
}
body.ce-page .b .ce-plan li {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 26px 20px 18px;
  border-radius: 18px;
  background: rgba(10, 14, 24, 0.6);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.6s ease, opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .7, .2, 1);
}
body.ce-page .ce-plan li.is-in {
  background:
    radial-gradient(70% 140% at 0% 50%, rgba(245, 199, 106, 0.14), transparent 70%),
    rgba(14, 14, 18, 0.66);
}
body.ce-page .ce-plan i {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  font-style: normal;
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #e6d6c0;
  transition: background 0.6s ease, box-shadow 0.6s ease, color 0.6s ease;
}
body.ce-page .ce-plan li.is-in i {
  background: rgba(245, 199, 106, 0.16);
  box-shadow: 0 0 28px -4px rgba(245, 199, 106, 0.6);
  color: #fbe3a8;
}
body.ce-page .ce-plan p {
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 300;
  line-height: 1.35;
  color: #f1ede6;
}
body.ce-page .ce-plan small {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: #f0a49c;
}
/* the one step that is a "don't": the danger ink, not the gold */
body.ce-page .ce-plan li.ce-not.is-in {
  background:
    radial-gradient(70% 140% at 0% 50%, rgba(234, 120, 110, 0.16), transparent 70%),
    rgba(18, 12, 14, 0.66);
}
body.ce-page .ce-plan li.ce-not.is-in i {
  background: rgba(234, 120, 110, 0.18);
  box-shadow: 0 0 28px -4px rgba(234, 120, 110, 0.55);
  color: #f6b3ab;
}

body.ce-page .b .ce-profit {
  margin-top: clamp(44px, 5vw, 64px);
  font-size: clamp(56px, 7vw, 104px);
  font-weight: 460;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(to bottom, #fffaf3 10%, #f4e3c4 55%, #d9b679 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(245, 199, 106, 0.3));
}
body.ce-page .b .ce-profit span { opacity: 0.5; }

/* ------------------------------------------------------------ the close */
/* the planet they are going to, behind the one button */

body.v3.ce-page main > section.ce-final[id] {
  --b-bg: transparent;
  padding-top: clamp(140px, 16vw, 240px);
  padding-bottom: clamp(140px, 16vw, 240px);
}
body.ce-page .ce-final-pic {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
}
body.ce-page .ce-final > :not(.ce-final-pic) { position: relative; z-index: 1; }
body.ce-page .ce-final .display { --d: clamp(44px, 6.4vw, 96px); filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.8)); }
body.ce-page .ce-final .ce-say { margin-top: clamp(28px, 3vw, 40px); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9); }
body.ce-page .ce-final .ce-sub { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9); color: #d4d1cc; }
body.ce-page .pill.ce-go {
  margin-top: clamp(36px, 4vw, 52px);
  padding: 20px 56px;
  background: linear-gradient(to bottom, #fbe3a8, #f5c76a);
  box-shadow: 0 0 0 1px rgba(255, 240, 200, 0.6), 0 0 60px -8px rgba(245, 199, 106, 0.8);
  color: #17130c;
  font-size: 20px;
  font-weight: 600;
}
body.ce-page .pill.ce-go:hover { filter: brightness(1.07); background: linear-gradient(to bottom, #fde9b8, #f5c76a); }
body.ce-page .b .ce-meta {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b9bcc3;
}

/* ------------------------------------------------------------ the sticky button */
/* phones only, after the hero, and gone again when the close is on screen */

body.ce-page .ce-sticky { display: none; }

/* ------------------------------------------------------------ the footer */

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

/* ------------------------------------------------------------ narrower */

@media (max-width: 1100px) {
  body.ce-page .b .ce-flow { grid-template-columns: 1fr auto 1fr; gap: 18px 12px; }
  /* two rows: 1,000 -> 120, then 36 -> $54k, with the middle rate on its own line */
  body.ce-page .ce-flow .ce-op:nth-child(4) { grid-column: 1 / -1; }
  body.ce-page .ce-flow .ce-op:nth-child(4)::after {
    width: 12px;
    height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 26'%3E%3Cpath d='M6 1v22M1 18l5 5 5-5' fill='none' stroke='%23e3bf8e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

@media (max-width: 760px) {
  body.ce-page .b .ce-big { font-size: clamp(130px, 44vw, 200px); }
  body.ce-page .b-hero .display { --d: clamp(34px, 9.4vw, 44px); }
  body.ce-page .b-hero .actions { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }

  body.ce-page .b .ce-flow { grid-template-columns: 1fr; gap: 10px; max-width: 340px; }
  body.ce-page .ce-flow .ce-op { justify-self: center; max-width: none; padding: 4px 0; }
  body.ce-page .ce-flow .ce-op::after,
  body.ce-page .ce-flow .ce-op:nth-child(4)::after {
    rotate: none;
    width: 12px;
    height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 26'%3E%3Cpath d='M6 1v22M1 18l5 5 5-5' fill='none' stroke='%23e3bf8e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  body.ce-page .ce-flow .ce-op:nth-child(4) { grid-column: auto; }
  body.ce-page .b .ce-node { padding: 22px 14px; }
  /* the rocket stands two thirds across the picture; a phone crops to it */
  body.ce-page .b-hero { --pic-at: 68% 50%; }

  body.ce-page .b .ce-plan li { grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 18px 16px 14px; }
  body.ce-page .ce-plan i { width: 44px; height: 44px; font-size: 15px; }

  body.ce-page .pill.ce-go { width: 100%; max-width: 340px; padding: 18px 24px; font-size: 18px; }

  body.ce-page .ce-sticky {
    position: fixed;
    z-index: 20;
    left: 16px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    display: block;
    padding: 16px 20px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #fbe3a8, #f5c76a);
    box-shadow: 0 0 0 1px rgba(255, 240, 200, 0.6), 0 16px 40px -8px rgba(0, 0, 0, 0.9), 0 0 40px -10px rgba(245, 199, 106, 0.8);
    color: #17130c;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(140%);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(.2, .7, .2, 1);
    pointer-events: none;
  }
  body.ce-page .ce-sticky.is-on { opacity: 1; transform: none; pointer-events: auto; }
  body.ce-page footer { padding-bottom: 104px; }
}
