/* Public signup / waitlist — built on tokens.css + base.css. Self-contained. */

/* ── Split shell ────────────────────────────────────────────────────── */
.su-split-body { min-height: 100vh; }
.su-split-grid { display: grid; grid-template-columns: minmax(360px, 42%) minmax(0, 1fr); min-height: 100vh; }

/* LEFT — brand pane on the sky hero, pinned to the viewport so it doesn't
   reflow when the form on the right grows/shrinks (toggles, errors). */
.su-stage {
  position: sticky; top: 0; height: 100vh; align-self: start; overflow: hidden;
  color: var(--bc-white);
  background:
    linear-gradient(180deg, rgba(28, 37, 46, .42), rgba(28, 37, 46, .68)),
    url("../img/ignite-hero.92fe6f332ea4.jpg") center / cover no-repeat;
}
.su-stage-inner { position: relative; z-index: 1; height: 100%; padding: 56px 48px 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.su-stage-brand { display: flex; flex-direction: column; align-items: center; }
.su-stage-logo { display: block; height: 90px; width: auto; margin: 0 0 18px; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .35)); }
.su-stage-tagline { margin: 14px 0 0; font-size: 1.06rem; color: rgba(255, 255, 255, .82); max-width: 320px; line-height: 1.45; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.su-stage-footer { position: absolute; z-index: 2; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .5); font-size: .74rem; letter-spacing: .02em; }

/* RIGHT — form pane, calm white, scrollable */
.su-pane { background: var(--bc-white); position: relative; padding: 30px 36px 64px; display: flex; flex-direction: column; min-height: 100vh; }
.su-form-column { width: 100%; max-width: 452px; margin: auto; animation: su-rise .55s cubic-bezier(.2, .7, .2, 1) both; }

.su-return { display: inline-flex; align-items: center; gap: 7px; color: var(--bc-gray); font-weight: 700; font-size: .88rem; margin-bottom: 28px; transition: color .15s ease; }
.su-return:hover { color: var(--bc-primary); }
.su-return svg { width: 16px; height: 16px; }

.su-title { font-size: clamp(1.8rem, 3vw, 2.1rem); font-weight: 800; color: var(--bc-dark); letter-spacing: -.025em; line-height: 1.06; }
.su-subtitle { color: var(--bc-gray); margin-top: 10px; margin-bottom: 30px; line-height: 1.5; font-size: 1.02rem; }

/* ── Error banner ───────────────────────────────────────────────────── */
.su-form-banner { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-md); background: var(--danger-bg); color: var(--danger); font-weight: 600; font-size: .88rem; margin-bottom: 20px; }
.su-form-banner svg { width: 18px; height: 18px; flex: none; }

/* ── Account-type cards ─────────────────────────────────────────────── */
.su-account-type { border: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.su-legend { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--bc-gray); margin-bottom: 10px; padding: 0; grid-column: 1 / -1; }
@media (max-width: 460px) { .su-account-type { grid-template-columns: 1fr; } }

.su-account-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 16px 16px 14px; border: 1.5px solid var(--bc-light-gray); border-radius: 14px; cursor: pointer; background: var(--bc-white); transition: border-color .18s ease, background-color .45s ease, color .45s ease; }
.su-account-card:hover { border-color: var(--bc-gray); }
.su-account-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.su-account-card.active { border-color: var(--bc-primary); background: var(--bc-primary-light); }
.su-account-card.active::after { content: "\2713"; position: absolute; top: 11px; right: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bc-primary); color: var(--bc-white); font-size: 12px; font-weight: 800; line-height: 1; display: grid; place-items: center; animation: su-check-pop .28s cubic-bezier(.2, .7, .2, 1); }
.su-account-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--bc-light); color: var(--bc-dark); margin-bottom: 7px; transition: background .15s ease, color .15s ease; }
.su-account-card.active .su-account-icon { background: var(--bc-primary); color: var(--bc-white); }
.su-account-icon svg { width: 20px; height: 20px; }
.su-account-title { font-weight: 800; color: var(--bc-dark); font-size: .98rem; }
.su-account-sub { color: var(--bc-gray); font-size: .8rem; line-height: 1.35; }

/* ── Fields (floating-label, filled) ────────────────────────────────── */
.su-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .su-grid2 { grid-template-columns: 1fr; } }

.su-form-group { position: relative; margin-bottom: 14px; }
.su-form-group input {
  width: 100%; box-sizing: border-box; padding: 21px 15px 7px;
  border: 1.5px solid transparent; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bc-dark) 4%, var(--bc-white));
  font: inherit; color: var(--bc-text); appearance: none;
  transition: border-color .15s ease, background-color .35s ease, box-shadow .15s ease, color .35s ease;
}
.su-form-group input:hover { background: color-mix(in srgb, var(--bc-dark) 6.5%, var(--bc-white)); }
.su-form-group input:focus { outline: none; border-color: var(--bc-primary); background: var(--bc-white); box-shadow: 0 0 0 3px var(--bc-primary-light); }
/* Floating label: rests as the placeholder, lifts on focus / when filled. */
.su-form-group label {
  position: absolute; left: 16px; top: 15px; pointer-events: none;
  color: var(--bc-gray); font-size: 1rem; font-weight: 500;
  transform-origin: left top; transition: transform .14s ease, color .14s ease;
}
.su-form-group input:focus + label,
.su-form-group input:not(:placeholder-shown) + label { transform: translateY(-9px) scale(.74); font-weight: 700; }
.su-form-group input:focus + label { color: var(--bc-primary); }
.su-field-error { display: block; color: var(--danger); font-size: .78rem; font-weight: 600; margin-top: 5px; }
.su-field-error:empty { display: none; }
.su-form-group.has-error input { border-color: var(--danger); background: var(--bc-white); }
.su-form-group.has-error input:focus { box-shadow: 0 0 0 3px var(--danger-bg); }
.su-form-group.has-error label { color: var(--danger); }

/* ── Honeypot (hidden from humans) ──────────────────────────────────── */
.su-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Terms + submit ─────────────────────────────────────────────────── */
.su-terms { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--bc-text); line-height: 1.45; margin-top: 8px; cursor: pointer; }
.su-terms input { margin-top: 2px; width: 17px; height: 17px; flex: none; accent-color: var(--bc-primary); }
.su-terms a { color: var(--bc-primary); font-weight: 600; }
.su-terms.has-error span { color: var(--danger); }

.su-submit { width: 100%; margin-top: 26px; padding: .95em 1em; border: none; border-radius: var(--radius-md); background: var(--bc-primary); color: var(--bc-white); font: inherit; font-size: 1.02rem; font-weight: 700; letter-spacing: .01em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; transition: background .15s ease; }
.su-submit:hover { background: var(--bc-primary-hover); }
.su-submit:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bc-primary-light); }
.su-submit:disabled { opacity: .85; cursor: default; transform: none; box-shadow: none; }
.su-submit svg { width: 18px; height: 18px; }
.su-trust { text-align: center; color: var(--bc-gray); font-size: .82rem; margin-top: 14px; }

/* ── Confirmation page ──────────────────────────────────────────────── */
.su-form-column.su-confirm { text-align: left; }
.su-confirm-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--bc-primary); }
.su-confirm-eyebrow svg { width: 15px; height: 15px; }
.su-confirm h1 { font-size: clamp(2rem, 4.2vw, 2.7rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.06; color: var(--bc-dark); }
.su-confirm p { margin-top: 16px; max-width: 42ch; color: var(--bc-gray); line-height: 1.6; font-size: 1.05rem; }
.su-confirm p strong { color: var(--bc-dark); font-weight: 700; }
.su-confirm-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; color: var(--bc-dark); font-weight: 700; font-size: .92rem; transition: color .15s ease; }
.su-confirm-back svg { width: 16px; height: 16px; transition: transform .15s ease; }
.su-confirm-back:hover { color: var(--bc-primary); }
.su-confirm-back:hover svg { transform: translateX(-3px); }

/* ── Animations ─────────────────────────────────────────────────────── */
@keyframes su-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes su-leave { to { opacity: 0; transform: translateY(-12px) scale(.985); } }
@keyframes su-pop { 0% { opacity: 0; transform: scale(.55); } 60% { transform: scale(1.1); } 100% { opacity: 1; transform: scale(1); } }
/* Applied on submit (via signup.js) to fade the form out before navigating. */
.su-leaving { animation: su-leave .42s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  .su-form-column, .su-confirm-icon { animation: none; }
  .su-leaving { animation: none; opacity: 0; }
}

/* ── Flying pigs (decorative, on the left brand pane only) ──────────── */
.su-pigs { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.su-pig { position: absolute; width: 96px; height: auto; opacity: .92; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .35)); animation: su-float 6s ease-in-out infinite; will-change: transform; }
@keyframes su-float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-18px) rotate(var(--r, 0deg)); } }
.su-pig--1 { top: 8%;    left: 9%;   width: 118px; --r: -14deg; animation-delay: 0s;   animation-duration: 6.5s; }
.su-pig--2 { top: 21%;   right: 13%; width: 74px;  --r: 9deg;   animation-delay: .9s;  animation-duration: 5.4s; }
.su-pig--3 { top: 43%;   left: 5%;   width: 66px;  --r: 17deg;  animation-delay: 1.7s; animation-duration: 6.6s; opacity: .82; }
.su-pig--4 { top: 37%;   right: 9%;  width: 104px; --r: -6deg;  animation-delay: .4s;  animation-duration: 7.2s; }
.su-pig--5 { top: 63%;   left: 17%;  width: 88px;  --r: 13deg;  animation-delay: 1.2s; animation-duration: 6.1s; }
.su-pig--6 { bottom: 15%; right: 15%; width: 100px; --r: -17deg; animation-delay: 2.1s; animation-duration: 5.8s; }
.su-pig--7 { bottom: 9%;  left: 28%;  width: 58px;  --r: 6deg;   animation-delay: 1s;   animation-duration: 5s;   opacity: .7; }
.su-pig--8 { top: 13%;   right: 34%; width: 64px;  --r: -5deg;  animation-delay: 1.5s; animation-duration: 6.8s; opacity: .8; }

/* ── Mascot — the anchor of the composition ─────────────────────────── */
.pig { position: relative; display: inline-block; line-height: 0; }
.pig__img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.su-cape-pig { position: relative; z-index: 2; margin-top: 28px; width: clamp(150px, 20vw, 210px); filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .45)); animation: su-cape-float 6s ease-in-out infinite; }
@keyframes su-cape-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .su-pig, .su-cape-pig { animation: none; } }

/* ── Mobile: collapse to single column, brand becomes a top banner ──── */
@media (max-width: 768px) {
  .su-split-grid { grid-template-columns: 1fr; }
  .su-stage { position: static; height: auto; min-height: 240px; }
  .su-stage-inner { padding: 32px 24px 48px; }
  .su-stage-logo { height: 64px; }
  .su-stage-footer { display: none; }
  .su-pane { padding: 26px 20px 48px; min-height: auto; }
  .su-pig--3, .su-pig--5, .su-pig--7 { display: none; }
  .su-pig { opacity: .7; }
  .su-cape-pig { display: none; }
}

@keyframes su-check-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── Terms of Use popup ─────────────────────────────────────────────────
   A white document card over a blurred scrim. Content typography comes
   from legal.css (.legal__body). */
.su-modal { position: fixed; inset: 0; z-index: 100; }
.su-modal.is-open { display: flex; align-items: center; justify-content: center; padding: 24px; }
.su-modal__scrim { position: absolute; inset: 0; background: rgba(10, 15, 20, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.su-modal__card {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  width: min(760px, 100%); max-height: min(86vh, 900px);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55);
  animation: su-modal-in .28s cubic-bezier(.2, .7, .2, 1) both;
}
.su-modal__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 22px; border-bottom: 1px solid #e6eaed; }
.su-modal__title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; color: var(--bc-dark); }
.su-modal__x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: none; border-radius: 50%; background: #f0f2f4; color: #45525d; cursor: pointer; transition: background .12s ease; }
.su-modal__x:hover { background: #e4e8eb; }
.su-modal__x svg { width: 18px; height: 18px; }
.su-modal__body { overflow-y: auto; padding: 20px 26px 28px; }
.su-modal__body p:first-child { margin-top: 0; }
body.su-modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .su-modal__card { animation: none; } }
@keyframes su-modal-in { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
