/* Phase124: public landing-only polish. Keep customer chat selectors out. */

body.customer-entry:not(.u2c-authenticated-preview) .access-page {
  width: min(1380px, calc(100% - 40px));
  gap: clamp(18px, 2.6vw, 36px);
}

body.customer-entry:not(.u2c-authenticated-preview) .public-intro {
  min-height: calc(100svh - 48px);
  justify-content: flex-start;
  padding: clamp(28px, 4.6vw, 64px);
}

body.customer-entry:not(.u2c-authenticated-preview) .public-intro-copy {
  max-width: 720px;
  margin: clamp(88px, 15vh, 176px) 0 0;
}

body.customer-entry:not(.u2c-authenticated-preview) .public-intro-copy::before {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--access-brass);
  opacity: 0.72;
}

body.customer-entry:not(.u2c-authenticated-preview) #user-surface {
  position: relative;
  min-width: 0;
}

/* Give the access card a quiet architectural frame without adding another UI
   element or changing the login-gate DOM. */
body.customer-entry:not(.u2c-authenticated-preview) #user-surface::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(86%, 392px);
  height: min(62%, 430px);
  border: 1px solid color-mix(in srgb, var(--access-forest) 22%, var(--access-line));
  border-radius: 24px;
  transform: translate(-45%, -48%) rotate(2deg);
  pointer-events: none;
}

body.customer-entry:not(.u2c-authenticated-preview) #user-surface .cu-shell.cu-shell-login-gate {
  max-width: 460px;
  margin-inline: auto;
}

body.customer-entry:not(.u2c-authenticated-preview) #user-surface .cu-login-gate-card {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--access-line);
  border-top: 3px solid var(--access-brass);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 38px);
  color: var(--access-ink);
  background: var(--access-paper);
  box-shadow: var(--access-shadow);
}

body.customer-entry:not(.u2c-authenticated-preview) #user-surface .cu-login-gate-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px -10px -10px 10px;
  border: 1px solid color-mix(in srgb, var(--access-brass) 38%, transparent);
  border-radius: inherit;
  pointer-events: none;
}

body.customer-entry:not(.u2c-authenticated-preview) #user-surface .cu-login-gate-card::after {
  content: "";
  position: absolute;
  top: -9px;
  right: 24px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--access-brass);
  background: var(--access-paper);
  transform: rotate(45deg);
  pointer-events: none;
}

body.customer-entry:not(.u2c-authenticated-preview) #user-surface .cu-login-gate-title {
  color: var(--access-ink);
  font-family: var(--access-serif);
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  letter-spacing: -0.035em;
}

body.customer-entry:not(.u2c-authenticated-preview) #user-surface .cu-login-gate-body {
  color: var(--access-muted);
}

body.customer-entry:not(.u2c-authenticated-preview) #user-surface .cu-btn-primary,
body.customer-entry:not(.u2c-authenticated-preview) #user-surface .cu-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  font-family: var(--access-sans);
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

body.customer-entry:not(.u2c-authenticated-preview) #user-surface .cu-btn-primary {
  background: var(--access-forest);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--access-forest) 20%, transparent);
}

body.customer-entry:not(.u2c-authenticated-preview) #user-surface .cu-btn-primary:hover {
  background: var(--access-forest-dark);
}

body.customer-entry:not(.u2c-authenticated-preview) #user-surface .cu-btn-secondary {
  color: var(--access-forest-dark);
  border: 1px solid var(--access-line);
  background: var(--access-paper-2);
}

@media (max-width: 980px) {
  body.customer-entry:not(.u2c-authenticated-preview) .public-intro-copy {
    margin-top: clamp(72px, 11vh, 128px);
  }
}

@media (max-width: 640px) {
  body.customer-entry:not(.u2c-authenticated-preview) .access-page {
    width: min(100% - 20px, 560px);
  }

  body.customer-entry:not(.u2c-authenticated-preview) .public-intro {
    min-height: 0;
    padding: 24px 22px 30px;
  }

  body.customer-entry:not(.u2c-authenticated-preview) .public-intro-copy {
    margin-top: 74px;
  }

  body.customer-entry:not(.u2c-authenticated-preview) .public-intro h1 {
    max-width: none;
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  body.customer-entry:not(.u2c-authenticated-preview) #user-surface .cu-login-gate-card {
    overflow: visible;
    padding: 24px 18px;
  }

  body.customer-entry:not(.u2c-authenticated-preview) #user-surface::before {
    width: min(86%, 340px);
    height: 86%;
    transform: translate(-48%, -48%) rotate(1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.customer-entry:not(.u2c-authenticated-preview) .public-intro-copy::before {
    transition: none;
  }
}
