/* =====================================================================
   signup.css — the /signup (request-invite) page.
   Full-screen split: crisp paper form pane on the left, ink visual pane
   on the right (globe wireframe + console shot + rotating tips), the two
   separated by the hero's pixel-stitch seam. Reuses the landing's design
   tokens (:root in unify.css), the M Saans faces (mv-ui.css) and the
   Knockout wordmark (nav.css). Everything page-specific lives here.
   ===================================================================== */

body { margin: 0; }

.su-page,
.su-page *,
.su-page *::before,
.su-page *::after { box-sizing: border-box; }

.su-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "M Saans Regular", "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- the split ---------- */
.su-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, 45fr) 34px 55fr;
}

/* full-height pixel stitch — same device as the hero's .dho-stitch--seam */
.su-seam {
  position: relative;
  background: var(--paper);
}
.su-seam::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--ink) 0 2px, transparent 2px 8px);
  opacity: .45;
}

/* =====================================================================
   LEFT — form pane
   ===================================================================== */
.su-pane-form {
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

/* slim header (brand + back link) */
.su-head {
  /* wordmark palette (from nav.css .nv-root) so the cascading brand resolves */
  --nv-paper: #f7f4ef;
  --nv-ink: #191410;
  --nv-step: 8px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 72px;
  background: var(--paper);
}
.su-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  margin-right: 20px;
  padding: 8px 14px;
  border-radius: 100px;
  font-family: "M Saans 600", ui-sans-serif, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.su-back:hover { color: var(--ink); background: rgba(33, 26, 20, .05); }
.su-back svg { width: 16px; height: 16px; }

/* centered card */
.su-form-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 40px 56px;
}
.su-card {
  width: 100%;
  max-width: 400px;
}

.su-card-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.su-card-eyebrow svg { width: 11px; height: 11px; flex: none; }

/* tabs */
.su-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--paper-inset);
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  margin-bottom: 32px;
}
.su-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 10px 12px;
  font-family: "M Saans 600", ui-sans-serif, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.su-tab:hover { color: var(--ink); }
.su-tab[aria-selected="true"] {
  background: var(--white-nested);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(33, 26, 20, .12);
}

.su-form-title {
  font-family: "M Saans 652", ui-sans-serif, sans-serif;
  font-weight: 652;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.su-form-sub {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
  margin-bottom: 24px;
}

.su-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.su-label {
  font-family: "M Saans 600", ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1px;
  color: var(--ink);
}
.su-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--paper-raised);
  color: var(--ink);
  font-family: "M Saans Regular", "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.2;
  transition: border-color .15s, box-shadow .15s;
}
.su-input::placeholder { color: var(--ink-3); }
.su-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.su-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 20px;
  font-size: 14px;
}
.su-check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); cursor: pointer; }
.su-check input { width: 15px; height: 15px; accent-color: var(--accent); }
.su-textlink {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent);
  font-family: "M Saans 600", sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.su-textlink:hover { text-decoration: underline; }

.su-submit { width: 100%; margin-top: 4px; }
.su-submit[disabled] { opacity: .7; cursor: default; pointer-events: none; }

.su-spinner {
  width: 18px; height: 18px;
  animation: su-spin .8s linear infinite;
}
@keyframes su-spin { to { transform: rotate(360deg); } }

.su-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: #8a2409;
  font-size: 13.5px;
  line-height: 1.4;
}
.su-note svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.su-note a { color: inherit; font-weight: 600; }
.su-note[hidden] { display: none; }

.su-fine {
  margin-top: 20px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  text-align: center;
}
.su-fine a { color: var(--ink-2); }

/* success state */
.su-success { text-align: center; padding: 8px 0; }
.su-success-badge {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.su-success-badge svg { width: 30px; height: 30px; color: #fff; }
.su-success-title {
  font-family: "M Saans 652", sans-serif;
  font-weight: 652;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 10px;
}
.su-success-text { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-bottom: 8px; }
.su-success-text strong { color: var(--ink); }
.su-success-meta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper-inset);
  border: 1px solid var(--border-hairline);
  font-size: 13px; color: var(--ink-2);
}
.su-success-meta svg { width: 15px; height: 15px; }
.su-success-reset {
  margin-top: 22px;
  border: 0; background: transparent;
  color: var(--accent);
  font-family: "M Saans 600", sans-serif; font-size: 14px;
  cursor: pointer;
}
.su-success-reset:hover { text-decoration: underline; }

/* slim footer */
.su-pane-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px 20px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.su-pane-foot a {
  color: var(--ink-3);
  text-decoration: none;
}
.su-pane-foot a:hover { color: var(--ink); }
.su-foot-links { display: inline-flex; gap: 18px; }

/* =====================================================================
   RIGHT — ink visual pane (testimonial-section pixel art + globe + shot)
   ===================================================================== */
.su-pane-visual {
  /* the globe script reads these off .dpf2-hero-orbit — light lines on ink */
  --ink: #f2efe8;
  --accent: #d83a12;
  --paper: #211a14;
  position: relative;
  background: #211a14;
}
/* neutralize the landing hero's .dpf2-hero-orbit box styles (unify.css) */
.su-pane-visual.dpf2-hero-orbit { padding: 0; }
@media (max-width: 809.98px) {
  .su-pane-visual.dpf2-hero-orbit { padding: 0; }
}
.su-visual {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* soft ember glow behind the shot — same warmth as the ember voice slide */
.su-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 760px;
  height: 760px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(216, 58, 18, .16), transparent 65%);
  pointer-events: none;
}

/* ---- globe: huge background sphere, cropped by the pane ---- */
.su-visual .dho-stage {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(1250px, 135%);
  aspect-ratio: 1;
  pointer-events: none;
}
.su-visual .dho-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
.su-visual .dho-chip {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(33, 26, 20, .10);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

/* ---- pixel stars scattered around the composition ---- */
.su-star {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  animation: su-twinkle 5s ease-in-out infinite;
}
.su-star svg { display: block; width: 100%; height: 100%; }
.su-star--1 { left: 12%; top: 14%; width: 22px; height: 22px; }
.su-star--2 { right: 14%; top: 10%; width: 14px; height: 14px; animation-delay: 1.4s; }
.su-star--3 { left: 7%; bottom: 34%; width: 12px; height: 12px; animation-delay: 2.6s; }
.su-star--4 { right: 9%; bottom: 38%; width: 18px; height: 18px; animation-delay: 3.4s; }
@keyframes su-twinkle {
  0%, 100% { opacity: .35; }
  50% { opacity: .95; }
}

/* ---- the console shot, centered above the globe ---- */
.su-shot-zone {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 56px 28px;
  min-height: 0;
}
.su-shot {
  position: relative;
  width: min(720px, 86%);
  margin: 0;
  border-radius: 10px;
  overflow: visible;
  background: #0e0b08;
  border: 1px solid rgba(246, 241, 232, .18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.su-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
/* pixel viewfinder brackets — the console "targets" the shot */
.su-shot::before,
.su-shot::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.su-shot::before {
  left: -11px;
  top: -11px;
  border-left: 3px solid var(--accent);
  border-top: 3px solid var(--accent);
}
.su-shot::after {
  right: -11px;
  bottom: -11px;
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
}
.su-shot-tag {
  position: absolute;
  z-index: 2;
  top: -11px;
  left: 22px;
  padding: 5px 9px 4px;
  border-radius: 4px;
  background: var(--accent);
  color: #f7f4ef;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- rotating tips (same rotation device as the proof voices) ---- */
.su-tips {
  position: relative;
  z-index: 4;
  padding: 0 64px 58px;
  text-align: center;
}
/* dark scrim so orbiting chips dim as they pass behind the tip text */
.su-tips::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -36px -24px -12px;
  background: radial-gradient(ellipse 70% 100% at 50% 60%,
    rgba(33, 26, 20, .95), rgba(33, 26, 20, .7) 55%, transparent 78%);
  pointer-events: none;
}
.su-tips-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.su-tips-head svg { width: 11px; height: 11px; flex: none; }
.su-tips-kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, .55);
}
.su-tips-count {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .14em;
  color: rgba(242, 239, 232, .55);
  background: rgba(242, 239, 232, .08);
  padding: 5px 8px;
  border-radius: 4px;
}
.su-tips-slides { display: grid; }
.su-tip {
  grid-area: 1 / 1;
  justify-self: center;
  margin: 0;
  max-width: 480px;
  font-family: "PP Mondwest", Georgia, serif;
  font-weight: 400;
  font-size: 23px;
  line-height: 1.35;
  color: #f2efe8;
  opacity: 0;
  visibility: hidden;
  transition: opacity 450ms ease, visibility 0s linear 450ms;
}
.su-tip.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 450ms ease;
}
.su-tips-track {
  width: 200px;
  height: 2px;
  margin: 22px auto 0;
  background: rgba(242, 239, 232, .15);
  overflow: hidden;
}
.su-tips-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: su-tip-bar 6s linear forwards;
}
@keyframes su-tip-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---- pixel-dither strip along the bottom edge (testimonial base) ---- */
.su-checker {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  background: repeating-conic-gradient(#f2efe8 0% 25%, transparent 0% 50%) 0 0 / 16px 16px;
  opacity: .16;
  pointer-events: none;
}

[hidden] { display: none !important; }

/* =====================================================================
   responsive
   ===================================================================== */
@media (max-width: 1199.98px) {
  .su-split { grid-template-columns: minmax(410px, 46fr) 30px 54fr; }
  .su-shot-zone { padding: 80px 36px 24px; }
  .su-shot { width: min(640px, 90%); }
  .su-tips { padding: 0 40px 48px; }
  .su-tip { font-size: 21px; }
}

@media (min-width: 1000px) and (max-height: 760px) {
  .su-shot { width: min(540px, 78%); }
  .su-shot-zone { padding-top: 64px; }
  .su-tips { padding-bottom: 44px; }
}

@media (max-width: 999.98px) {
  .su-split { grid-template-columns: 1fr; }
  .su-seam,
  .su-pane-visual { display: none; }
}

@media (max-width: 520px) {
  .su-form-wrap { padding: 24px 18px 48px; }
  .su-pane-foot { padding: 14px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .su-star { animation: none; opacity: .6; }
  .su-tips-bar { animation: none; transform: scaleX(1); }
  .su-tip { transition: none; }
}
