/* card page hero */
#cp-hero { min-height: calc(100vh - 72px); display: flex; align-items: center; padding-block: clamp(56px, 6vw, 96px); }
#cp-hero .cp-hero-h { font-size: clamp(48px, 6.2vw, 104px); }
#cp-hero .cp-hero-join { margin-top: clamp(26px, 2.6vw, 36px); max-width: 480px; display: grid; gap: 12px; }
#cp-hero .waitlist { background: #F2F4F1; border-color: #F2F4F1; }
#cp-hero .cp-note { font-size: var(--t-small); color: var(--fg2); }
@media (max-width: 900px) { #cp-hero { min-height: 0; } }

/* ==========================================================================
   The hero object: the same Clear Visa the homepage shows, given material.
   .cph            container (cqw units = % of the column)
   .cph-stage      fixed-ratio stage; card and two stickers placed in %
   .cph-obj        the resting pose (2D tilt)
   .cph-in         entrance (js/cp-hero.js)
   .cph-tilt       pointer tilt (rotateX/Y from --rx/--ry, set by JS)
   .cph-ply        edge plies under the face: printed back, white core, printed front.
                   Offset by --ex/--ey so the visible edge follows the tilt.
   .cph-sheen      specular band across the face; --sx moves it with the pointer.
   ========================================================================== */
@media (min-width: 901px) {
  #cp-hero .cp-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 4vw, 72px); }
}

#cp-hero .cph {
  --rx: 0deg; --ry: 0deg; --erx: 0deg; --ex: 2px; --ey: 5px; --sx: 34%; --shx: 0px; --shy: 0px; --px: 0; --py: 0;
  --pose: -8deg; --cw: 90cqw;
  position: relative; width: 100%; container-type: inline-size;
}
#cp-hero .cph-stage { position: relative; width: 100%; aspect-ratio: 1 / .86; }

#cp-hero .cph-obj {
  position: absolute; left: 50%; top: 49%; width: var(--cw);
  translate: -50% -50%; rotate: var(--pose);
}
#cp-hero .cph-in { perspective: 1600px; }
#cp-hero .cph-tilt {
  position: relative; transform: rotateX(calc(var(--rx) + var(--erx))) rotateY(var(--ry)); transform-origin: 50% 50%;
}

/* edge plies: each a card-shaped sheet, stepped toward the edge offset */
#cp-hero .cph-ply { position: absolute; inset: 0; border-radius: 4.4% / 7%; }
#cp-hero .cph-ply--front  { background: #172C78; transform: translate(calc(var(--ex) * .25), calc(var(--ey) * .25)); }
#cp-hero .cph-ply--core2  { background: #C9D1EE; transform: translate(calc(var(--ex) * .5), calc(var(--ey) * .5)); }
#cp-hero .cph-ply--core   { background: var(--paper-3); transform: translate(calc(var(--ex) * .75), calc(var(--ey) * .75)); }
#cp-hero .cph-ply--back   { background: #131F57; transform: translate(var(--ex), var(--ey)); }
/* the ground shadow lives on the back-most ply, so it always hugs the card's shape */
#cp-hero .cph-ply--shadow {
  background: transparent;
  transform: translate(var(--ex), var(--ey));
  box-shadow:
    calc(var(--shx) * .2) calc(2px + var(--shy) * .2) 3px rgba(11,18,48,.38),
    calc(var(--shx) * .6) calc(14px + var(--shy) * .6) 22px -6px rgba(11,18,48,.42),
    calc(8px + var(--shx)) calc(40px + var(--shy)) 60px -18px rgba(11,18,48,.55),
    calc(14px + var(--shx) * 1.4) calc(70px + var(--shy) * 1.4) 90px -34px rgba(11,18,48,.5);
}

/* the face: the homepage card, with a crisper rim so it reads on cobalt */
#cp-hero .cph .ccard {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1.5px 0 rgba(255,255,255,.22);
}
#cp-hero .cph-sheen {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background:
    linear-gradient(112deg,
      transparent calc(var(--sx) - 26%),
      rgba(255,255,255,.07) calc(var(--sx) - 9%),
      rgba(255,255,255,.20) calc(var(--sx) - 1.2%),
      rgba(255,255,255,.26) var(--sx),
      rgba(255,255,255,.06) calc(var(--sx) + 1.4%),
      transparent calc(var(--sx) + 12%)),
    linear-gradient(180deg, rgba(255,255,255,.07), transparent 38%);
}

/* ---- the two stickers ------------------------------------------------- */
#cp-hero .cph-tag { position: absolute; z-index: 2; translate: calc(var(--px) * 8px) calc(var(--py) * 5px); }
#cp-hero .cph-tag-in { color: var(--ink); background: var(--paper-2); }
#cp-hero .cph-tag--clear { left: 1%; top: 3%; }
#cp-hero .cph-tag--clear .cph-tag-in { rotate: -2deg; padding: 12px 18px 12px 12px; gap: 12px; }
#cp-hero .cph-clear-t { display: grid; gap: 2px; }
#cp-hero .cph-clear-t b { font-family: var(--f-display); font-weight: 800; font-size: clamp(18px, 3.3cqw, 21px); line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
#cp-hero .cph-clear-t span { font-size: clamp(13px, 2.15cqw, 13.5px); line-height: 1.25; color: var(--ink-70); font-variant-numeric: tabular-nums; }

#cp-hero .cph-tag--order { right: 0; bottom: 3%; }
#cp-hero .cph-tag--order .cph-tag-in { rotate: 1.5deg; display: grid; gap: 12px; padding: 14px 16px 15px; width: clamp(252px, 47cqw, 300px); white-space: normal; }
#cp-hero .cph-tag-h { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .1em; text-transform: uppercase; line-height: 1; color: var(--ink-50); }
#cp-hero .cph-order { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
#cp-hero .cph-order li { display: grid; gap: 9px; min-width: 0; }
#cp-hero .cph-order i { height: 7px; background: var(--cobalt); }
#cp-hero .cph-order li.on2 i { background: var(--cobalt-light); }
#cp-hero .cph-order li:last-child i { background: var(--cobalt-tint); box-shadow: inset 0 0 0 1px var(--cobalt-light); }
#cp-hero .cph-order span { display: flex; align-items: baseline; gap: 6px; font-size: clamp(14px, 2.35cqw, 15px); font-weight: 600; line-height: 1; white-space: nowrap; }
#cp-hero .cph-order em { font-family: var(--f-mono); font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--ink-50); }

/* entrance start states live in JS; without JS or with reduced motion the end state shows */

/* ---- stacked: the card sits under the form ------------------------------ */
@media (max-width: 900px) {
  /* stacked: the words centre over the card, like the home page hero */
  #cp-hero .cp-split > div:first-child { text-align: center; }
  #cp-hero .hero-tag { justify-content: center; }
  #cp-hero .cp-lead { margin-inline: auto; text-wrap: balance; }
  #cp-hero .cp-hero-join { margin-inline: auto; }
  #cp-hero .cph { --pose: -6deg; --cw: 88cqw; max-width: 640px; margin-inline: auto; }
  #cp-hero .cph-stage { aspect-ratio: 1 / .92; }
}
@media (max-width: 560px) {
  #cp-hero .cph { --pose: -6deg; --cw: 90cqw; }
  #cp-hero .cph-stage { aspect-ratio: 1 / 1.02; }
  #cp-hero .cph-obj { top: 50%; }
  #cp-hero .cph-tag--clear { left: 0; top: 0; }
  #cp-hero .cph-tag--clear .cph-tag-in { padding: 10px 14px 10px 10px; gap: 10px; }
  #cp-hero .cph-tag--clear .ico { width: 30px; height: 30px; }
  #cp-hero .cph-clear-t b { font-size: 18px; }
  #cp-hero .cph-clear-t span { font-size: 13px; }
  #cp-hero .cph-tag--order { right: 0; bottom: 0; }
  #cp-hero .cph-tag--order .cph-tag-in { width: min(268px, 78cqw); padding: 12px 14px 13px; gap: 10px; }
  #cp-hero .cph-order span { font-size: 14px; gap: 5px; }
  #cp-hero .cph-order em { font-size: 12.5px; }
}
