/* ==========================================================================
   KJPTV — Account page furniture (.su-* sign up, .lg-* log in)
   Linked by Sign Up.html and Log In.html. Sign Up is a checkout step, not a
   marketing page: form on the left, the plan rail on the right, condensed
   footer. Log In reuses the same card, field and done-state furniture in one
   narrow centred column.
   ========================================================================== */

/* The footer drops to its legal line here — an account page has no room for a
   second sitemap under it. Same treatment the Member Profile carries. */
.page-signup .footer-top,
.page-signup .footer-news,
.page-login .footer-top,
.page-login .footer-news { display: none; }
.page-signup .footer,
.page-login .footer { padding-top: 34px; }

/* ---- Shell ---------------------------------------------------------------- */
.su { position: relative; overflow: hidden; padding: calc(var(--nav-height) + 54px) 0 96px; }
.su-pattern {
  position: absolute; inset: 0; z-index: 0; opacity: 0.05; pointer-events: none;
  background: url('assets/brand-pattern.png?v=59e9ff10') center / 320px repeat;
}
.su-wash {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(90% 70% at 84% -6%, rgba(214, 157, 56, 0.14) 0%, rgba(6,6,6,0) 62%),
    radial-gradient(120% 90% at 10% 0%, rgba(6,6,6,0.5) 0%, rgba(6,6,6,0.9) 58%, #060606 100%);
}
.su .container { position: relative; z-index: 2; }

.su-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start;
}
.su-col { min-width: 0; }
.su-head { margin-bottom: 40px; }
.su-head h1 {
  font-size: clamp(calc(var(--size-display) * 0.5667), 4.4vw, calc(var(--size-display) * 0.8667)); font-weight: 900; line-height: 1.02; letter-spacing: -0.035em;
}
.su-lede { margin: 16px 0 0; max-width: 52ch; font-size: calc(var(--size-body) * 1.1429); line-height: 1.6; color: var(--text-body); }

/* ---- Form card ------------------------------------------------------------ */
.su-card {
  padding: 30px; border-radius: calc(var(--radius-card) * 1.25);
  background: var(--color-surface-1);
  border: 1px solid var(--border-bevel);
  box-shadow: var(--bevel-highlight), var(--shadow-matte-lg);
}
.su-soc { display: grid; gap: 10px; }
.su-soc .btn { justify-content: center; }
.su-soc svg { width: 17px; height: 17px; flex: none; }
.su-or {
  display: flex; align-items: center; gap: 14px; margin: 20px 0;
  font-size: var(--size-meta); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}
.su-or::before, .su-or::after { content: ""; flex: 1; height: 1px; background: var(--border-bevel-strong); }

.su-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.su-form .is-wide { grid-column: 1 / -1; }

/* Password: reveal toggle sits inside the field, strength rides under it */
.su-pass { position: relative; }
.su-pass .dt-input { padding-right: 46px; }
.su-eye {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; padding: 0; color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.su-eye:hover { color: var(--gold-mustard); background: rgba(255,255,255,0.04); }
.su-eye svg { width: 17px; height: 17px; }
.su-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.su-meter i {
  height: 4px; border-radius: 999px; background: var(--color-surface-3);
  box-shadow: var(--well-inset); transition: background var(--dur-base) var(--ease-out);
}
.su-meter.lv1 i:nth-child(1),
.su-meter.lv2 i:nth-child(-n+2),
.su-meter.lv3 i { background: var(--gold-bar); box-shadow: none; }
.su-hint { font-size: var(--size-small); line-height: 1.5; color: var(--text-muted); }
.su-hint.is-strong { color: var(--gold-mustard); }
.su-hint.is-taken { color: #e5484d; font-weight: 600; }
/* A refused sign-up: the server's reason, above the button */
.su-form .su-warn { grid-column: 1 / -1; margin: 0; text-align: left; }
.su-form .btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* Referral code: folded away until it is wanted */
.su-reftoggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 0;
  font-size: calc(var(--size-small) * 1.0833); font-weight: 600; color: var(--gold-mustard);
}
.su-reftoggle svg { width: 15px; height: 15px; transition: transform var(--dur-base) var(--ease-out); }
.su-reftoggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.su-ref { display: grid; gap: 8px; margin-top: 12px; }
.su-ref label { font-size: calc(var(--size-meta) * 0.9545); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.su-refnote { display: none; align-items: center; gap: 9px; font-size: calc(var(--size-small) * 1.0417); color: var(--text-muted); }
.su-refnote.is-shown { display: flex; }
.su-refnote.is-ok { color: var(--text-body); }
.su-refnote b { color: var(--gold-mustard); font-weight: 700; }
.su-ref-face {
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--color-surface-3); box-shadow: var(--well-inset);
  font-size: calc(var(--size-meta) * 0.8636); font-weight: 800; color: var(--gold-mustard);
}
.su-ref-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }

.su-check-wrap { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.su-check-wrap .label { font-size: calc(var(--size-small) * 1.0833); line-height: 1.5; color: var(--text-body); }
.su-fine { margin: 18px 0 0; font-size: var(--size-small); line-height: 1.6; color: var(--text-muted); text-align: center; }
.su-alt { margin: 22px 0 0; font-size: var(--size-body); color: var(--text-body); text-align: center; }
.su-alt a { font-weight: 700; }

/* ---- Already signed in ---------------------------------------------------- */
.su-signed {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-items: center;
  margin-top: 0; padding: 20px 22px; border-radius: 18px;
  background: var(--color-surface-1); border: 1px solid var(--border-bevel);
  box-shadow: var(--bevel-highlight), var(--shadow-matte);
}
.su-signed-face {
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  width: 46px; height: 46px; border-radius: 50%; grid-row: span 2;
  background: var(--color-surface-3); box-shadow: var(--well-inset);
  font-size: var(--size-body); font-weight: 800; color: var(--gold-mustard);
}
.su-signed-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.su-signed-id b { display: block; font-size: calc(var(--size-body) * 1.1429); font-weight: 800; color: var(--text-heading); letter-spacing: -0.02em; }
.su-signed-id span { font-size: calc(var(--size-small) * 1.0417); color: var(--text-muted); }
.su-signed-note { grid-column: 2; margin: 8px 0 0; font-size: calc(var(--size-body) * 0.9643); line-height: 1.55; color: var(--text-body); }
.su-signed-acts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
/* What this move gives up. Semantic red, the one non-brand colour on the page. */
.su-warn { grid-column: 2; margin: 12px 0 0; font-size: calc(var(--size-small) * 1.0833); line-height: 1.5; font-weight: 600; color: #e5484d; text-align: center; }

/* ---- Handoff state -------------------------------------------------------- */
.su-done {
  padding: 40px 30px 32px; border-radius: 20px; text-align: center;
  background: var(--color-surface-1); border: 1px solid var(--border-gold);
  box-shadow: var(--bevel-highlight), var(--shadow-matte-lg), var(--gold-glow);
}
.su-done img { width: 46px; height: 46px; margin: 0 auto 18px; display: block; }
.su-done h2 { font-size: calc(var(--size-heading) * 0.875); font-weight: 800; letter-spacing: -0.03em; }
.su-done p { margin: 12px auto 0; max-width: 42ch; font-size: calc(var(--size-body) * 1.0357); line-height: 1.6; color: var(--text-body); }
.su-done-bar {
  position: relative; height: 5px; margin: 26px auto 0; max-width: 320px; border-radius: 999px;
  background: var(--color-surface-3); box-shadow: var(--well-inset); overflow: hidden;
}
.su-done-bar i {
  position: absolute; inset: 0 auto 0 0; display: block; width: 0; border-radius: 999px;
  background: var(--gold-bar); transition: width 2400ms linear;
}
.su-done.is-running .su-done-bar i { width: 100%; }
.su-done-acts { display: grid; gap: 10px; margin-top: 26px; }

/* ---- Plan rail ------------------------------------------------------------ */
.su-rail { position: sticky; top: calc(var(--nav-height) + 20px); }
.su-rail-head { margin-bottom: 18px; }
.su-rail-head .kicker { margin-bottom: 10px; }
.su-rail-head h2 { font-size: calc(var(--size-heading) * 0.8125); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.su-rail-sub { margin: 10px 0 0; font-size: calc(var(--size-body) * 0.9643); line-height: 1.55; color: var(--text-body); }

.su-plans { display: grid; gap: 12px; }
.su-plan {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 2px 14px; padding: 15px 17px; border-radius: 14px; cursor: pointer;
  background: var(--color-surface-2); border: 1px solid var(--border-bevel);
  box-shadow: var(--bevel-highlight);
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.su-plan:hover { border-color: var(--border-bevel-strong); }
.su-plan.is-on { border-color: var(--border-gold); background: var(--color-surface-3); box-shadow: var(--bevel-highlight), var(--gold-glow); }
.su-plan input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.su-plan-mark {
  position: relative; width: 20px; height: 20px; border-radius: 50%; grid-row: span 2; flex: none;
  background: var(--color-surface-3); box-shadow: var(--well-inset);
  border: 1px solid var(--border-bevel-strong);
}
.su-plan-mark::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-knob); opacity: 0; transform: scale(0.3);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.su-plan.is-on .su-plan-mark::after { opacity: 1; transform: scale(1); }
.su-plan input:focus-visible + .su-plan-mark { box-shadow: 0 0 0 3px rgba(255, 210, 107, 0.5); }
.su-plan-name {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: calc(var(--size-body) * 1.0357); font-weight: 800; color: var(--text-heading); letter-spacing: -0.01em;
}
.su-plan-sub { grid-column: 2; font-size: calc(var(--size-small) * 1.0417); line-height: 1.45; color: var(--text-muted); }
.su-plan-price { grid-row: span 2; text-align: right; white-space: nowrap; }
.su-plan-price b { display: block; font-size: calc(var(--size-subhead) * 1.1111); font-weight: 900; letter-spacing: -0.03em; color: var(--text-heading); }
.su-plan.is-on .su-plan-price b { color: var(--gold-mustard); }
.su-plan-price em { font-style: normal; font-size: var(--size-meta); font-weight: 600; color: var(--text-muted); }
.su-chip {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: calc(var(--size-meta) * 0.8636); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #2a1e08;
  background: var(--gold-metallic-135); box-shadow: var(--bevel-highlight);
}
.su-chip.is-quiet { background: none; color: var(--text-muted); box-shadow: none; border: 1px solid var(--border-bevel-strong); }

/* The chosen row opens to show what it carries */
.su-plan-more { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.su-plan.is-on .su-plan-more { grid-template-rows: 1fr; }
.su-plan-more-in { display: block; overflow: hidden; min-height: 0; }
.su-plan-feat { display: grid; gap: 9px; margin-top: 14px; padding-bottom: 2px; }
.su-feat { display: flex; align-items: flex-start; gap: 9px; font-size: calc(var(--size-small) * 1.0417); line-height: 1.45; color: var(--text-body); }
.su-feat svg { flex: none; width: 13px; height: 13px; margin-top: 3px; color: var(--gold-mustard); }
.su-plan-note { display: block; margin-top: 12px; font-size: calc(var(--size-meta) * 1.0455); font-weight: 700; letter-spacing: 0.04em; color: var(--gold-mustard); }

/* Nothing picked yet, and the viewer tried to move on */
@keyframes suAsk {
  0%, 100% { box-shadow: var(--bevel-highlight); border-color: var(--border-bevel); }
  50% { box-shadow: var(--bevel-highlight), var(--gold-glow-strong); border-color: var(--border-gold); }
}
.su-plans.is-asking .su-plan:not(.is-on) { animation: suAsk 900ms var(--ease-out) 2; }

.su-split { display: block; height: 1px; margin: 4px 2px; background: var(--border-bevel-strong); }
.su-plan.is-free { background: rgba(255,255,255,0.012); }

/* The plan a signed-in viewer is already on, and the ones their plan covers */
.su-plan.is-current { cursor: default; opacity: 0.6; }
.su-plan.is-current:hover { border-color: var(--border-bevel); }
.su-plan.is-blocked { cursor: default; opacity: 0.4; }
.su-plan.is-blocked:hover { border-color: var(--border-bevel); }

.su-total {
  margin-top: 18px; padding: 18px 20px; border-radius: 14px;
  background: var(--color-surface-1); border: 1px solid var(--border-bevel); box-shadow: var(--bevel-highlight);
}
.su-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.su-total-row span { font-size: calc(var(--size-meta) * 1.0455); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.su-total-row b { font-size: calc(var(--size-heading) * 0.8125); font-weight: 900; letter-spacing: -0.03em; }
.su-total-note { margin: 8px 0 0; font-size: calc(var(--size-small) * 1.0417); line-height: 1.5; color: var(--text-body); }
.su-secure {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px;
  font-size: var(--size-small); color: var(--text-muted);
}
.su-secure svg { width: 14px; height: 14px; color: var(--gold-honey); }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1060px) {
  .su-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
}
@media (max-width: 980px) {
  /* Pick first, fill second. */
  .su-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .su-rail { position: static; order: -1; }
  .su-head { margin-bottom: 32px; }
  .su-head h1 { font-size: clamp(calc(var(--size-heading) * 0.9375), 8vw, calc(var(--size-heading) * 1.25)); }
}
/* ==========================================================================
   LOG IN (.lg-*) — the same card, one narrow column. The forgot-password form
   swaps in place of the log-in form, so there is no second page.
   ========================================================================== */
.page-login .su { display: flex; align-items: center; min-height: calc(100vh - 260px); }
.lg-wrap { width: 100%; max-width: 500px; margin: 0 auto; }
.lg-wrap .su-head { margin-bottom: 30px; text-align: center; }
.lg-wrap .su-head h1 { font-size: clamp(var(--size-heading), 4vw, calc(var(--size-heading) * 1.375)); }
.lg-wrap .su-lede { margin-left: auto; margin-right: auto; max-width: 40ch; }
.lg-form { grid-template-columns: minmax(0, 1fr); }
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.lg-forgot { padding: 0; font-size: calc(var(--size-small) * 1.0833); font-weight: 700; color: var(--gold-mustard); }
.lg-forgot:hover { color: var(--gold-catchlight); }
/* What the sign-in answers back: a wrong password, a two-factor code, a restore */
.lg-note { margin: 0; font-size: var(--size-small); line-height: 1.5; color: var(--text-muted); }
.lg-err { margin: 12px 0 0; text-align: center; font-size: calc(var(--size-small) * 1.0833); font-weight: 700; color: var(--danger, #ff7d6e); }
.lg-restore { margin-top: 14px; padding: 16px 18px; border-radius: 12px; text-align: center; background: var(--color-surface-2);
  border: 1px solid var(--border-gold); box-shadow: var(--bevel-highlight); }
.lg-restore p { margin: 0 0 12px; font-size: calc(var(--size-small) * 1.0833); line-height: 1.55; color: var(--text-body); }
.lg-restore b { color: var(--text-heading); }
.lg-back {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 18px;
  font-size: calc(var(--size-body) * 0.9643); font-weight: 600; color: var(--text-body);
  transition: color var(--dur-fast) var(--ease-out);
}
.lg-back svg { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease-out); }
.lg-back:hover { color: var(--gold-mustard); }
.lg-back:hover svg { transform: translateX(-3px); }
.lg-switch { grid-column: 2; margin: 12px 0 0; font-size: calc(var(--size-small) * 1.0833); color: var(--text-muted); }
.lg-switch a { font-weight: 700; }

/* Swapping between the two forms: confident and quick, no bounce */
@keyframes lgIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.lg-anim { animation: lgIn 260ms var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { .lg-anim { animation: none; } }

@media (max-width: 620px) {
  .su { padding: calc(var(--nav-height) + 32px) 0 72px; }
  .page-login .su { min-height: 0; }
  .lg-row { gap: 10px; }
  .su-card { padding: 22px 18px; }
  .su-form { grid-template-columns: 1fr; }
  .su-plan { padding: 14px; gap: 2px 12px; }
  .su-plan-price b { font-size: var(--size-subhead); }
  .su-signed { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .su-done { padding: 32px 20px 26px; }
}
