/* EdgeHunterHQ customer access
   One governed surface for Discord sign-in, onboarding, account states and errors. */

/* The legacy corporate shell reserves a 320px body even when a classic
   scrollbar reduces the usable viewport below that width. Account screens
   are fully fluid, so remove that floor here to prevent phone-side overflow. */
body {
  min-width: 0;
}

/* This stylesheet is loaded only on account surfaces, so the fixed corporate
   masthead can safely honor phone cutouts without altering the product shell. */
.site-header {
  height: calc(88px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-left: env(safe-area-inset-left, 0px);
}

.site-header.is-scrolled {
  height: calc(76px + env(safe-area-inset-top, 0px));
}

/* The corporate shell predates the account launch. Raise its smallest footer
   text and navigation targets on these account pages without changing the
   already-live product surfaces. */
.site-footer__bottom {
  color: #a1a8b2;
  font-size: .75rem;
  line-height: 1.35;
}

.site-footer__nav a,
.eh-legal-disclosure__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.customer-access {
  --ca-ink: var(--eh-color-ink, var(--eh-ink, #0b0c0d));
  --ca-inset: var(--eh-color-inset, #0e1012);
  --ca-surface-1: var(--eh-color-surface-1, var(--eh-panel, #111316));
  --ca-surface-2: var(--eh-color-surface-2, var(--eh-panel-raised, #181b1f));
  --ca-surface-3: var(--eh-color-surface-3, #20242a);
  --ca-line: var(--eh-color-line, var(--eh-line, #2a2f36));
  --ca-line-strong: var(--eh-color-line-strong, #373d46);
  --ca-text-hi: var(--eh-color-text-hi, var(--eh-silver, #e9ecf1));
  --ca-text: var(--eh-color-text, var(--eh-copy, #b7bec8));
  --ca-muted: #a1a8b2;
  --ca-dim: var(--eh-color-text-dim, #5c636d);
  --ca-lime: var(--eh-color-lime, var(--eh-lime, #cbf24e));
  --ca-lime-deep: var(--eh-color-lime-deep, var(--eh-lime-deep, #a7cf34));
  --ca-lime-ink: var(--eh-color-lime-ink, #141a06);
  --ca-success: var(--eh-color-success, #4fd18b);
  --ca-caution: var(--eh-color-caution, var(--eh-caution, #f2c14e));
  --ca-error: var(--eh-color-error, var(--eh-danger, #f27a6e));
  min-height: 82vh;
  padding: 136px 0 88px;
  padding-top: calc(136px + env(safe-area-inset-top, 0px));
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    var(--ca-ink);
  background-size: 34px 34px;
  color: var(--ca-text-hi);
}

.customer-access__shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.customer-access__frame {
  border: 1px solid var(--ca-line);
  background: var(--ca-surface-1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.customer-access__masthead {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
  border-bottom: 1px solid var(--ca-line);
  background: var(--ca-inset);
}

.customer-access__brand,
.customer-access__section-label,
.customer-access__eyebrow,
.customer-access__status,
.customer-access__label,
.customer-access__button,
.customer-access__tag {
  font-family: var(--eh-font-mono, var(--eh-mono, "SFMono-Regular", Menlo, Consolas, monospace));
}

.customer-access__brand {
  color: var(--ca-text-hi);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.customer-access__brand span {
  color: var(--ca-lime);
}

.customer-access__section-label {
  color: var(--ca-muted);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.customer-access__split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 570px;
}

.customer-access__story,
.customer-access__panel {
  padding: clamp(32px, 5vw, 64px);
}

.customer-access__story {
  grid-column: 1;
  grid-row: 1;
  border-right: 1px solid var(--ca-line);
  background:
    radial-gradient(circle at 14% 16%, rgba(203, 242, 78, .08), transparent 34%),
    var(--ca-surface-1);
}

.customer-access__panel {
  display: flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  flex-direction: column;
  justify-content: center;
  background: var(--ca-surface-2);
}

.customer-access__eyebrow {
  margin: 0;
  color: var(--ca-lime);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.customer-access h1 {
  max-width: 11ch;
  margin: 20px 0 18px;
  color: var(--ca-text-hi);
  font: 800 clamp(2.65rem, 6vw, 5.25rem)/.94 var(--eh-font-display, var(--eh-display, "Helvetica Neue", Arial, sans-serif));
  letter-spacing: -.06em;
}

.customer-access__lede {
  max-width: 39rem;
  margin: 0;
  color: var(--ca-text);
  font-size: 1.08rem;
  line-height: 1.7;
}

.customer-access__jump {
  display: none;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: 13px;
  border: 1px solid var(--ca-line-strong);
  color: var(--ca-text-hi);
  font: 750 .68rem/1 var(--eh-font-mono, var(--eh-mono, "SFMono-Regular", Menlo, Consolas, monospace));
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}

#discord-action-title {
  scroll-margin-top: calc(100px + env(safe-area-inset-top, 0px));
}

.customer-access__trust {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 24px clamp(32px, 5vw, 64px) clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--ca-line);
  border-right: 1px solid var(--ca-line);
  background: var(--ca-surface-1);
}

.customer-access__trust div {
  min-width: 0;
}

.customer-access__trust dt {
  margin-bottom: 6px;
  color: var(--ca-text-hi);
  font-size: .9rem;
  font-weight: 750;
}

.customer-access__trust dd {
  margin: 0;
  color: var(--ca-muted);
  font-size: .78rem;
  line-height: 1.5;
}

.customer-access__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--ca-success);
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.customer-access__status::before {
  width: 9px;
  height: 9px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.customer-access__status--caution {
  color: var(--ca-caution);
}

.customer-access__status--error,
.customer-access__status--ended {
  color: var(--ca-error);
}

.customer-access__panel h2,
.customer-access__card h1,
.customer-access__account-head h1 {
  margin: 0;
  color: var(--ca-text-hi);
  font: 800 clamp(2rem, 4vw, 3rem)/1 var(--eh-font-display, var(--eh-display, "Helvetica Neue", Arial, sans-serif));
  letter-spacing: -.045em;
}

.customer-access__copy {
  margin: 16px 0 0;
  color: var(--ca-text);
  font-size: 1rem;
  line-height: 1.65;
}

.customer-access__facts {
  margin: 26px 0 22px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ca-line);
}

.customer-access__facts li {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--ca-line);
}

.customer-access__facts span {
  color: var(--ca-muted);
  font-size: .84rem;
}

.customer-access__facts strong {
  color: var(--ca-text-hi);
  font-size: .9rem;
  text-align: right;
}

.customer-access__button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
  border: 1px solid var(--ca-lime);
  background: var(--ca-lime);
  color: var(--ca-lime-ink);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.customer-access__button:hover {
  border-color: var(--ca-lime-deep);
  background: var(--ca-lime-deep);
  transform: translateY(-1px);
}

.customer-access__button--quiet {
  width: auto;
  border-color: var(--ca-line-strong);
  background: transparent;
  color: var(--ca-text-hi);
}

.customer-access__button--quiet:hover {
  border-color: var(--ca-text);
  background: var(--ca-surface-3);
}

.customer-access__fine,
.customer-access__consent {
  color: var(--ca-muted);
  font-size: .78rem;
  line-height: 1.6;
}

.customer-access__consent {
  margin: 18px 0 0;
}

.customer-access__fine {
  margin: 22px 0 0;
}

.customer-access__fine a,
.customer-access__consent a {
  color: var(--ca-text-hi);
  text-underline-offset: 3px;
}

.customer-access__agreement-links {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.customer-access__agreement-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding-inline: 13px;
  border: 1px solid var(--ca-line-strong);
  color: var(--ca-text-hi);
  font: 700 .68rem/1.2 var(--eh-font-mono, var(--eh-mono, "SFMono-Regular", Menlo, Consolas, monospace));
  letter-spacing: .05em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.customer-access__agreement-links a:hover,
.customer-access__agreement-links a:focus-visible {
  border-color: var(--ca-text);
  background: var(--ca-surface-3);
}

.site-nav.auth-nav a,
.site-nav.account-nav a,
.site-nav.account-nav .site-nav__cta,
.site-nav.auth-error-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.customer-access__notice {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--ca-line-strong);
  background: var(--ca-inset);
  color: var(--ca-text);
  font-size: .86rem;
  line-height: 1.55;
}

.customer-access__notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ca-text-hi);
}

.customer-access__form {
  width: min(820px, 100%);
  margin-inline: auto;
}

.customer-access__card {
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--ca-line);
  background: var(--ca-surface-1);
}

.customer-access__card h1 {
  max-width: 15ch;
  margin-top: 18px;
}

.customer-access__identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0;
  padding: 15px 0;
  border-top: 1px solid var(--ca-line);
  border-bottom: 1px solid var(--ca-line);
}

.customer-access__identity span {
  color: var(--ca-muted);
  font-size: .82rem;
}

.customer-access__identity strong {
  overflow-wrap: anywhere;
  color: var(--ca-text-hi);
  text-align: right;
}

.customer-access__check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 12px;
  padding: 17px;
  border: 1px solid var(--ca-line);
  background: var(--ca-inset);
  cursor: pointer;
}

.customer-access__check:hover,
.customer-access__check:focus-within {
  border-color: var(--ca-line-strong);
}

.customer-access__check input {
  width: 21px;
  height: 21px;
  margin: 1px 0 0;
  accent-color: var(--ca-lime);
}

.customer-access__check strong {
  display: block;
  color: var(--ca-text-hi);
  font-size: .95rem;
}

.customer-access__check small {
  display: block;
  margin-top: 6px;
  color: var(--ca-muted);
  font-size: .8rem;
  line-height: 1.55;
}

.customer-access__error {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--ca-error);
  background: rgba(242, 122, 110, .08);
  color: #ffd5d0;
  font-weight: 700;
}

.customer-access__submit {
  width: auto;
  margin-top: 22px;
  cursor: pointer;
}

.customer-access__login-form {
  margin: 0;
}

.customer-access__login-submit {
  margin-top: 16px;
  cursor: pointer;
}

.customer-access__account-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.customer-access__account-head h1 {
  margin-top: 16px;
}

.customer-access__tag {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--ca-line-strong);
  color: var(--ca-text);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.customer-access__tag--pro {
  border-color: rgba(203, 242, 78, .55);
  color: var(--ca-lime);
}

.customer-access__account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  border: 1px solid var(--ca-line);
  background: var(--ca-surface-1);
}

.customer-access__account-main,
.customer-access__account-side {
  padding: clamp(24px, 4vw, 42px);
}

.customer-access__account-side {
  border-left: 1px solid var(--ca-line);
  background: var(--ca-surface-2);
}

.customer-access__label {
  display: block;
  margin: 0 0 10px;
  color: var(--ca-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.customer-access__value {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ca-text-hi);
  font-size: 1.15rem;
  font-weight: 800;
}

.customer-access__account-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ca-success);
  font-size: 1.25rem;
}

.customer-access__account-status::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.customer-access__account-status--caution {
  color: var(--ca-caution);
}

.customer-access__account-status--error,
.customer-access__account-status--ended {
  color: var(--ca-error);
}

.customer-access__account-status--muted {
  color: var(--ca-muted);
}

.customer-access__account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.customer-access__account-actions .customer-access__button {
  width: auto;
}

.customer-access__account-actions form {
  margin: 0;
}

.customer-access__account-actions button.customer-access__button {
  cursor: pointer;
}

.customer-access__definition {
  margin: 26px 0 0;
  border-top: 1px solid var(--ca-line);
}

.customer-access__definition div {
  display: grid;
  grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--ca-line);
}

.customer-access__definition dt {
  color: var(--ca-muted);
  font-size: .8rem;
}

.customer-access__definition dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ca-text-hi);
  font-size: .86rem;
  font-weight: 700;
  text-align: right;
}

.customer-access__error-frame {
  width: min(700px, 100%);
  margin-inline: auto;
  padding: clamp(30px, 6vw, 58px);
  border-top: 3px solid var(--ca-error);
  background: var(--ca-surface-1);
}

.customer-access__error-frame h1 {
  max-width: 13ch;
}

.customer-access__error-frame .customer-access__button {
  width: auto;
  margin-top: 24px;
}

@media (max-width: 820px) {
  .customer-access {
    padding-top: calc(112px + env(safe-area-inset-top, 0px));
  }

  .customer-access__shell {
    width: min(100% - 30px, 720px);
  }

  .customer-access__split,
  .customer-access__account-grid {
    grid-template-columns: 1fr;
  }

  .customer-access__split {
    grid-template-rows: auto;
    min-height: 0;
  }

  .customer-access__story,
  .customer-access__panel {
    grid-column: 1;
    grid-row: auto;
  }

  .customer-access__story {
    border-right: 0;
    border-bottom: 1px solid var(--ca-line);
  }

  .customer-access__trust {
    grid-column: 1;
    grid-row: auto;
    border-right: 0;
  }

  .customer-access__account-side {
    border-top: 1px solid var(--ca-line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-header.is-scrolled {
    height: calc(76px + env(safe-area-inset-top, 0px));
  }
}

@media (min-width: 621px) and (max-height: 900px) {
  .customer-access__jump {
    display: inline-flex;
    margin-top: 24px;
  }
}

@media (max-width: 620px) {
  .customer-access {
    padding-top: calc(90px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .customer-access__masthead {
    min-height: 52px;
    padding-inline: 16px;
  }

  .customer-access__section-label {
    display: none;
  }

  .customer-access__story,
  .customer-access__panel,
  .customer-access__card,
  .customer-access__account-main,
  .customer-access__account-side {
    padding: 22px 18px;
  }

  .customer-access__story {
    padding-bottom: 20px;
  }

  .customer-access h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .customer-access__story h1 {
    margin-block: 14px 12px;
    font-size: clamp(2.3rem, 12vw, 3.25rem);
  }

  .customer-access__story .customer-access__lede {
    font-size: .94rem;
    line-height: 1.5;
  }

  .customer-access__jump {
    display: inline-flex;
    width: 100%;
    margin-top: 18px;
  }

  .customer-access__trust {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .customer-access__status {
    margin-bottom: 12px;
  }

  .customer-access__panel .customer-access__copy {
    font-size: .94rem;
    line-height: 1.5;
  }

  .customer-access__panel .customer-access__facts {
    display: none;
  }

  .customer-access__check {
    gap: 11px;
    padding: 14px;
  }

  .customer-access__check small {
    font-size: .76rem;
    line-height: 1.45;
  }

  .customer-access__agreement-links {
    gap: 6px;
    margin-top: 12px;
  }

  .customer-access__agreement-links a {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 5px;
    font-size: .61rem;
    letter-spacing: .025em;
  }

  .customer-access__facts li,
  .customer-access__identity {
    align-items: start;
    flex-direction: column;
    gap: 5px;
    padding-block: 12px;
  }

  .customer-access__identity strong,
  .customer-access__facts strong {
    text-align: left;
  }

  .customer-access__account-head {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

  .customer-access__account-actions,
  .customer-access__account-actions .customer-access__button,
  .customer-access__account-actions form,
  .customer-access__submit,
  .customer-access__error-frame .customer-access__button {
    width: 100%;
  }

  .customer-access__definition div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .customer-access__definition dd {
    text-align: left;
  }

  .auth-nav,
  .account-nav,
  .auth-error-nav {
    display: flex;
    position: static;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-access__button {
    transition: none;
  }
}

@media (max-width: 360px) {
  /* The account body already has the primary platform button; dropping this
     duplicate keeps Sign out fully visible at the 320px reflow baseline. */
  .account-nav__platform {
    display: none !important;
  }
}
