/* Human Blueprint · register page (system B, on top of ../assets/funnel.css) */

/* ---- hero ---- */
.hero { text-align: center; padding: clamp(72px, 10vw, 124px) 0 clamp(56px, 7vw, 92px); }
.hero__wrap { max-width: 1260px; }
.hero__title { margin: 0 auto; font-size: clamp(31px, 3.55vw, 50px); line-height: 1.08; letter-spacing: -0.032em; }
@media (min-width: 1000px) { .hero__title .ln > span { white-space: nowrap; } }
.hero__lead { max-width: 50ch; margin-top: clamp(20px, 2.4vw, 28px); text-wrap: balance; }

/* countdown · variant C (kinetic minimal line) in his wide display face, on a quiet lab-paper panel */
.cd {
  margin: clamp(36px, 5vw, 52px) auto 0; max-width: 640px; padding: clamp(24px, 3vw, 32px) clamp(18px, 3vw, 40px) clamp(22px, 2.6vw, 28px);
  border-radius: 28px; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--hair);
  box-shadow: 0 30px 60px -44px var(--shadow), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cd__when { margin: 0 0 18px; font-family: var(--display); font-stretch: 125%; font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.cd__line { display: flex; justify-content: center; align-items: flex-start; gap: clamp(2px, 1vw, 10px); font-variant-numeric: tabular-nums; }
.cd__u { display: grid; justify-items: center; gap: 8px; min-width: clamp(62px, 15vw, 112px); }
.cd__g { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(44px, 7.4vw, 76px); line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.cd__g.slide { animation: cdSlide 0.45s cubic-bezier(0.2, 0.7, 0.3, 1); }
@keyframes cdSlide { 0% { transform: translateY(-12px); opacity: 0.25; } 100% { transform: none; opacity: 1; } }
.cd__sep { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 5.2vw, 54px); line-height: 1.18; color: rgba(0, 57, 111, 0.38); }
.cd__l { font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.cd__bar { position: relative; height: 4px; margin: 24px auto 0; max-width: 440px; border-radius: 99px; background: var(--surface-3); }
.cd__bar > i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, rgba(0, 57, 111, 0.35), var(--accent)); transition: width 0.9s linear; }
.cd__bar > i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #fff, 0 3px 10px -2px var(--accent-glow); }
.cd__local { margin: 16px 0 0; font-size: 15px; color: var(--faint); }
.hero__cta { margin-top: clamp(30px, 4vw, 42px); }

/* ---- pillars · variant A connected step cards, re-skinned ---- */
.pgrid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 28px); padding-top: 24px; }
.pgrid::before { content: ""; position: absolute; top: 24px; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-line) 12%, var(--accent-line) 88%, transparent); }
.pcard {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 50px clamp(22px, 2.4vw, 32px) 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--hair);
  box-shadow: 0 34px 60px -48px var(--shadow);
}
.js .pgrid.in > .pcard { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), box-shadow 0.4s var(--ease); }
.pcard:hover { box-shadow: 0 40px 70px -46px rgba(0, 57, 111, 0.32); }
.pcard__n {
  position: absolute; top: -23px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 1.5px solid var(--accent);
  font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 15px; letter-spacing: 0.02em; color: var(--accent);
  box-shadow: 0 0 0 6px var(--bg);
}
.pcard__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.pcard__icon svg { width: 27px; height: 27px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pcard__k { display: block; margin: 20px 0 10px; font-family: var(--display); font-stretch: 125%; font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.pcard__t { font-size: clamp(21px, 1.85vw, 24px); line-height: 1.24; letter-spacing: -0.018em; }
.pcard__d { margin: 14px auto 30px; max-width: 32ch; font-size: 18px; line-height: 1.58; color: var(--muted); text-align: center; }
.pcard__range { width: 100%; max-width: 200px; margin: auto auto 6px; }

/* ---- host · variant A split card ---- */
.host {
  display: grid; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  max-width: 1060px; margin: 0 auto; padding: clamp(16px, 2vw, 24px); border-radius: 32px; background: var(--surface); border: 1px solid var(--hair);
  box-shadow: 0 50px 90px -64px var(--shadow);
}
.host__photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--surface-2); }
.host__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: scale(1.04); transition: transform 1.4s var(--ease); }
.js .host.in .host__photo img { transform: none; }
.host__body { padding: 10px clamp(4px, 2vw, 24px) 10px 0; }
.host__name { font-size: clamp(32px, 3.2vw, 42px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
.host__title { margin: 12px 0 22px; font-size: 17px; font-weight: 700; color: var(--accent); }
.host__bio p { margin: 0 0 14px; font-size: 18.5px; line-height: 1.66; color: var(--muted); }
.host__bio p:first-child { color: var(--ink); font-weight: 600; }
.host__stats { margin-top: 26px; gap: 12px; }
.host__stats .stat { padding: 18px 8px 16px; background: var(--surface-2); border-color: var(--hair-soft); }
.host__stats .stat b { font-size: clamp(28px, 2.5vw, 34px); }
.host__stats .stat span { font-size: 15px; }

/* ---- free gift · variant A split, the cover tilted -4deg that straightens on hover ---- */
.gift { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 1000px; margin: 0 auto; }
.gift__name { font-size: clamp(31px, 3.4vw, 44px); line-height: 1.06; }
.gift__val { margin: 18px 0 0; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--ink); max-width: 30ch; }
.gift__desc { margin: 12px 0 0; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 40ch; }
.deliver { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 11px 18px 11px 14px; border-radius: 999px; background: rgba(37, 211, 102, 0.09); border: 1px solid rgba(26, 140, 74, 0.22); color: #146c3a; font-weight: 700; font-size: 16px; line-height: 1.3; }
.deliver svg { width: 22px; height: 22px; flex: none; }
.gift__art { display: grid; place-items: center; padding: 24px 0; }
/* crop the rendered cover to the card itself (card is 820x1100, centred in the 1200x1500 render at -2deg) */
.gcard {
  --gw: 320px; position: relative; width: var(--gw); aspect-ratio: 820 / 1100; border-radius: calc(var(--gw) * 26 / 820); overflow: hidden;
  background: #fbfaf6; transform: rotate(-4deg); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  box-shadow: 0 60px 90px -50px rgba(28, 27, 26, 0.5), 0 3px 10px -3px rgba(28, 27, 26, 0.18);
}
.gcard img { position: absolute; left: 50%; top: 50%; width: calc(var(--gw) * 1200 / 820); max-width: none; height: auto; transform: translate(-50%, -50%) rotate(2deg) scale(1.025); }
.gcard:hover { transform: rotate(0); box-shadow: 0 70px 100px -50px rgba(28, 27, 26, 0.48), 0 3px 10px -3px rgba(28, 27, 26, 0.16); }

/* ---- proof ---- */
.proof-shots { margin-top: clamp(20px, 2.6vw, 28px); }
.ba__pair figure { aspect-ratio: 4 / 5; }
.ba > p { min-height: 3em; display: flex; align-items: center; justify-content: center; }

/* ---- testimonial videos: a touch narrower so 9:16 holds its shape ---- */
.tgrid { max-width: 760px; }

.bottom-cta { padding-top: 0; }

/* ---- opt-in modal (fixed to the viewport of whatever frame it's in; closes on X, backdrop, Esc) ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(20, 24, 30, 0.42); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%);
  opacity: 0; transition: opacity 0.28s ease; overflow-y: auto;
}
.modal-overlay.open { opacity: 1; }
.modal {
  position: relative; width: 100%; max-width: 460px; margin: auto; padding: 44px 36px 30px; text-align: center;
  border-radius: 28px; background: var(--bg); border: 1px solid var(--hair);
  box-shadow: 0 60px 120px -40px rgba(10, 16, 24, 0.55);
  transform: translateY(12px) scale(0.965); opacity: 0; transition: transform 0.32s var(--ease), opacity 0.28s ease;
}
.modal::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: linear-gradient(rgba(0, 57, 111, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 57, 111, 0.05) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 38%); mask-image: linear-gradient(180deg, #000, transparent 38%); }
.modal-overlay.open .modal { transform: none; opacity: 1; }
.modal > * { position: relative; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hair); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.modal-x:hover { transform: rotate(90deg); border-color: var(--accent); color: var(--accent); }
.modal-mark { display: block; margin: 0 auto 18px; font-size: 14px; letter-spacing: 0.12em; color: var(--ink); }
.modal h3 { font-size: 32px; letter-spacing: -0.025em; font-weight: 800; }
.modal-sub { margin: 8px 0 26px; font-size: 16px; font-weight: 600; color: var(--accent); }
.modal-field { margin-bottom: 14px; text-align: left; }
.modal-field label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.modal-field .opt { font-weight: 500; letter-spacing: 0.02em; text-transform: none; color: var(--faint); }
.modal-field input {
  width: 100%; min-height: 54px; padding: 14px 16px; font-family: inherit; font-size: 18px; color: var(--ink);
  background: var(--surface); border: 1px solid rgba(28, 27, 26, 0.16); border-radius: 14px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.modal-field input::placeholder { color: #8a867f; }
.modal-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 57, 111, 0.1); }
.modal-field input.err { border-color: #b4473d; box-shadow: 0 0 0 4px rgba(180, 71, 61, 0.12); }
.modal-err { min-height: 22px; margin: 2px 0 8px; font-size: 15px; color: #a33a31; }
.modal-submit { width: 100%; }
.modal-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 15px; line-height: 1.45; color: var(--faint); text-align: left; }
.modal-note svg { width: 18px; height: 18px; flex: none; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; row-gap: 52px; }
  .pgrid::before { display: none; }
  .host { grid-template-columns: minmax(0, 1fr); max-width: 580px; text-align: center; }
  .host__body { padding: 4px 8px 12px; }
  .host__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift { grid-template-columns: minmax(0, 1fr); text-align: center; max-width: 560px; gap: 20px; }
  .gift__art { order: -1; }
  .gift__val, .gift__desc { margin-inline: auto; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .host__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .cd { border-radius: 22px; }
  .gcard { --gw: 250px; }
  .modal { padding: 42px 22px 24px; border-radius: 24px; }
  .modal h3 { font-size: 28px; }
  .deliver { font-size: 15px; }
  .ba > p { min-height: 0; }
}
@media (max-width: 380px) {
  .cd__u { min-width: 56px; }
  .cd__l { letter-spacing: 0.08em; }
}
@media (prefers-reduced-motion: reduce) {
  .cd__g.slide { animation: none; }
  .cd__bar > i, .gcard, .modal-overlay, .modal, .host__photo img { transition: none; }
}
