/* Stakt ? ported from hi-fi prototypes */

.hf .auth {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 1080px;
  position: relative;
}
.hf .auth.flip { grid-template-columns: 1.05fr 1fr; }

.hf .auth-stage {
  background: var(--ink);
  color: var(--paper-white);
  padding: 56px 56px 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hf .auth-stage .stage-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  position: relative; z-index: 2;
}

/* Log in: align “WELCOME BACK…” with “LOG IN.” (top stack, matched header row). */
.hf .auth:not(.flip) .auth-stage {
  justify-content: flex-start;
  gap: 36px;
}

.hf .auth:not(.flip) .auth-stage .stage-top,
.hf .auth:not(.flip) .auth-form .form-top {
  min-height: 48px;
  align-items: flex-start;
}

/* Spacer-only stage-top (join) — reserves the same row as form-top. */
.hf .auth:not(.flip) .auth-stage .stage-top:empty,
.hf .auth:not(.flip) .auth-stage .stage-top[aria-hidden="true"]:not(:has(*)) {
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: none;
  visibility: hidden;
}

.hf .auth-stage .back {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 2px solid var(--paper-white);
  padding: 8px 12px;
  color: var(--paper-white);
  text-decoration: none;
}
.hf .auth-stage .stage-pitch {
  position: relative;
  z-index: 2;
  width: min(100%, 567px);
  margin-inline: auto;
}
/* Shared stage headline (log in + join) — Anton / --display */
.hf .auth-stage .auth-stage__title,
.hf .auth-stage .stage-pitch > h1.display {
  font-family: var(--display, 'Anton', 'Bebas Neue', sans-serif);
  font-size: 120px;
  font-weight: 400;
  font-style: normal;
  line-height: 0.98;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin: 0 0 24px;
  max-width: 567px;
  white-space: normal;
  -webkit-font-smoothing: antialiased;
}

.hf .auth-stage .auth-stage__title .em,
.hf .auth-stage .stage-pitch > h1.display .em {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--accent);
  white-space: normal;
}
.hf .auth-stage .stage-sub {
  font-size: 19px;
  line-height: 1.55;
  max-width: 480px;
  opacity: 0.82;
}
.hf .auth-stage .stage-bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  margin: 28px 0 0;
  padding: 0;
  max-width: 567px;
  list-style: none;
}
.hf .auth-stage .stage-bullets li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  font-size: 13px;
  align-items: baseline;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 11px;
  list-style: none;
}
.hf .auth-stage .stage-bullets li::before { display: none; }
.hf .auth-stage .stage-bullets .b-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 1px;
}
.hf .auth-stage .stage-bullets .b-h {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.hf .auth-stage .stage-bullets .b-d {
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.7;
}
.hf .auth-stage .stage-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  border-top: 2px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  position: relative; z-index: 2;
}
.hf .auth-stage .stage-marquee {
  position: absolute;
  left: -10%; right: -10%;
  bottom: 140px;
  font-family: var(--display);
  font-size: 90px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.08;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}
.hf .auth-stage .stage-star {
  position: absolute;
  width: 220px; height: 220px;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  bottom: -90px; right: -90px;
  z-index: 1;
}
.hf .auth-stage .stage-star::after {
  content: '';
  position: absolute; inset: 30px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}

/* ââ Auth form panel âââââââââââââââââââââââââââââââââââââ */
.hf .auth-form {
  background: var(--paper);
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-left: 2px solid var(--ink);
}
.hf .auth-form__column,
.hf .auth-form > .form-foot {
  width: min(100%, 560px);
  margin-inline: auto;
}
.hf .auth-form__column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hf .auth-form .form-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 36px;
}
.hf .auth-form .form-top .ix {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.55;
}
.hf .auth-form .form-top .alt {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.hf .auth-form .form-top .alt a {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  text-decoration: none;
  padding-bottom: 2px;
  margin-left: 6px;
  font-weight: 700;
}
.hf .auth-form h2 {
  font-family: var(--display);
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.hf .auth-form .form-intro {
  font-size: 16px; line-height: 1.55;
  opacity: 0.75; margin: 0 0 36px;
}
.hf .auth-form .form-grid {
  display: grid;
  gap: 18px;
  width: 100%;
}
.hf .auth-form .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }

.hf .field { display: flex; flex-direction: column; gap: 8px; }
.hf .field.span-2 { grid-column: span 2; }
.hf .field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.hf .field label .opt {
  font-weight: 400; opacity: 0.5; letter-spacing: 0.12em;
}
.hf .field input,
.hf .field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  background: var(--paper-white);
  border: 2px solid var(--ink);
  color: var(--ink);
  letter-spacing: 0.01em;
  outline: none;
}
.hf .field input::placeholder { color: rgba(10,10,10,0.35); }
.hf .field input:focus { background: #fffce8; box-shadow: 4px 4px 0 var(--ink); }
.hf .field .hint {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.55;
  margin-top: 2px;
}
.hf .field .err {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}
.hf .field .strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 4px;
}
.hf .field .strength span {
  height: 6px;
  border: 2px solid var(--ink);
  background: var(--paper-white);
}
.hf .field .strength span.on { background: var(--accent); }

.hf .check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
  margin-top: 6px;
}
.hf .check-row .box {
  width: 16px; height: 16px;
  border: 2px solid var(--ink);
  background: var(--paper-white);
  display: inline-block;
  margin-top: 2px;
}
.hf .check-row.checked .box {
  background: var(--ink);
  position: relative;
}
.hf .check-row.checked .box::after {
  content: ''; position: absolute;
  left: 3px; top: -1px;
  width: 5px; height: 9px;
  border-right: 2px solid var(--paper-white);
  border-bottom: 2px solid var(--paper-white);
  transform: rotate(45deg);
}
.hf .check-row .label-text { padding-top: 0; }
.hf .check-row .small-hint {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; opacity: 0.5;
  text-transform: uppercase;
  display: block; margin-top: 2px;
}

.hf .form-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}
.hf .form-actions .btn-primary {
  background: var(--ink);
  color: var(--paper-white);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  padding: 18px 28px;
  cursor: pointer;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
}
.hf .form-actions .btn-primary .arr { font-family: var(--display); font-size: 22px; }
.hf .form-actions .btn-primary.accent { background: var(--accent); color: var(--accent-ink); }
.hf .form-actions .btn-secondary {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent;
  border: none;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 6px 0;
  cursor: pointer;
}

.hf .form-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  border-top: 2px solid var(--ink);
}

/* Step indicator for signup */
.hf .steps {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border: 2px solid var(--ink);
  background: var(--paper-white);
}
.hf .steps .s {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-right: 2px solid var(--ink);
}
.hf .steps .s:last-child { border-right: none; }
.hf .steps .s .n {
  width: 22px; height: 22px;
  background: var(--paper);
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 13px;
}
.hf .steps .s.done .n { background: var(--ink); color: var(--paper-white); }
.hf .steps .s.active { background: var(--accent); color: var(--accent-ink); }
.hf .steps .s.active .n { background: var(--accent-ink); color: var(--ink); border-color: var(--ink); }

/* Plan picker (signup) */
.hf .plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}
.hf .plan {
  border: 2px solid var(--ink);
  background: var(--paper-white);
  padding: 18px;
  cursor: pointer;
  position: relative;
}
.hf .plan.active {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-hard);
}
.hf .plan .p-eyebrow {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.6;
}
.hf .plan .p-name {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 6px 0 4px;
}
.hf .plan .p-price {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  margin: 8px 0 4px;
}
.hf .plan .p-price .per {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.65;
}
.hf .plan .p-desc {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 6px;
  text-transform: uppercase;
  opacity: 0.75;
  line-height: 1.4;
}
.hf .plan .p-flag {
  position: absolute;
  top: -10px; right: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper-white);
  padding: 4px 8px;
}
.hf .plan.active .p-flag { background: var(--ink); }

/* What you're getting list (signup right side) */
.hf .receipt-card {
  background: var(--paper-white);
  border: 2px solid var(--ink);
  padding: 22px;
  width: 100%;
  margin-top: 18px;
}
.hf .receipt-card h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 14px;
  display: flex; justify-content: space-between;
}
.hf .receipt-card .r-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-top: 1px dashed rgba(10,10,10,0.25);
  font-size: 14px;
}
.hf .receipt-card .r-row:first-child { border-top: none; }
.hf .receipt-card .r-row.total {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  margin-top: 10px;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hf .receipt-card .r-row .strike { text-decoration: line-through; opacity: 0.4; margin-right: 8px; }

@media (max-width: 900px) {
  .hf .auth,
  .hf .auth.flip {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hf .auth-stage {
    display: none;
  }

  .hf .auth-form {
    padding: 40px 28px;
    border-left: none;
    border-right: none;
    border-top: 2px solid var(--ink);
  }

  .hf .auth.flip .auth-form {
    border-right: none;
  }
}