:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #f2f5fa;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  background: #f2f5fa;
  margin: 0;
  min-height: 100vh;
}

a {
  color: #174fbd;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #dce3ee;
  display: flex;
  min-height: 74px;
  padding: 12px clamp(20px, 4vw, 52px);
}

.brand {
  line-height: 0;
  text-decoration: none;
}

.brand picture {
  display: contents;
}

.brand-lockup {
  display: block;
  height: 40px;
  width: auto;
}

.shell {
  margin: 0 auto;
  max-width: 1480px;
  padding: 28px clamp(16px, 3vw, 40px) 48px;
}

.shell > .panel {
  margin-left: auto;
  margin-right: auto;
  max-width: 440px;
}

.panel {
  background: #ffffff;
  border: 1px solid #dce3ee;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(30, 48, 78, 0.045);
  padding: clamp(20px, 3vw, 28px);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

#signup-account-view > h1,
#signup-account-view > .lede,
#signup-account-view > .muted {
  text-align: center;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.lede,
.muted {
  color: #63718a;
  line-height: 1.5;
}

.lede {
  margin-bottom: 18px;
}

.age-attestation {
  align-items: flex-start;
  color: #172033;
  display: flex;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 10px;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0 auto 14px;
  max-width: 22rem;
  text-align: left;
  text-transform: none;
}

.age-attestation input {
  flex: 0 0 auto;
  margin-top: 3px;
}

#signup-account-view .age-attestation {
  max-width: none;
}

.age-attestation a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-form label.age-attestation {
  color: #172033;
  display: flex;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 4px 0 0;
  max-width: none;
  text-transform: none;
}

.inline-form label.age-attestation input {
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 0;
  padding: 0;
  width: auto;
}

/* Clerk leaves Continue enabled. The old consent lock painted it at 0.55
   opacity, which read as disabled. Keep the primary button looking tappable
   even if Clerk later sets disabled. */
#signup-account-view .cl-formButtonPrimary,
#signup-account-view .cl-formButtonPrimary:disabled,
#signup-account-view .cl-formButtonPrimary[aria-disabled="true"],
#signup-account-view .cl-formButtonPrimary[data-disabled] {
  cursor: pointer !important;
  opacity: 1 !important;
}

#signup-consent-block {
  margin: 0 0 8px;
  width: 100%;
}

#signup-consent-block .age-attestation {
  margin-bottom: 4px;
}

#signup-consent-block .muted {
  margin: 0 0 2px;
  text-align: center;
}

#signup-account-view #signup-consent-hint {
  display: none;
}

#sign-in-panel .cl-form:has(> #signup-consent-block) {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.signup-field-error {
  color: #a32626;
  display: block;
  flex: 1 0 100%;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0 0;
  text-align: left;
  width: 100%;
}

.signup-field-error:empty {
  margin-top: 2px;
  min-height: 1.2em;
  visibility: hidden;
}

#signup-consent-checkbox.signup-field-invalid {
  outline: 2px solid #a32626;
  outline-offset: 2px;
}

/* In-app browsers only. signup-browser.js adds .in-app on this panel for
   Facebook and Instagram webviews. These rules pull the live Clerk card
   (email, password, Continue) above a 664px fold. Field and button sizes
   stay on Clerk's own rules. Other browsers keep the spacing rules above. */
body:has(#signup-account-view.in-app) .topbar {
  min-height: 0;
  padding-bottom: 6px;
  padding-top: 6px;
}

body:has(#signup-account-view.in-app) .shell {
  padding-top: 10px;
}

#signup-account-view.in-app {
  padding-bottom: 16px;
  padding-top: 12px;
}

#signup-account-view.in-app > h1 {
  margin-bottom: 6px;
}

#signup-account-view.in-app > .lede {
  margin-bottom: 4px;
}

#signup-account-view.in-app .age-attestation {
  margin-bottom: 4px;
}

#signup-account-view.in-app > .muted {
  margin-bottom: 2px;
}

#signup-account-view.in-app > .signup-inapp-hint {
  margin-bottom: 2px;
}

#signup-account-view.in-app .cl-card {
  padding-bottom: 8px;
  padding-top: 10px;
}

#signup-account-view.in-app .cl-form {
  gap: 10px;
}

#signup-account-view.in-app .cl-form > div:has(> .cl-formFieldRow) {
  gap: 10px;
}

#signup-account-view.in-app #signup-consent-block {
  margin: 0 0 4px;
}

#signup-account-view.in-app #signup-consent-block .age-attestation {
  font-size: 0.82rem;
  line-height: 1.25;
  margin-bottom: 2px;
}

#signup-account-view.in-app #signup-consent-block .muted {
  font-size: 0.75rem;
  line-height: 1.25;
  margin-bottom: 0;
}

#signup-account-view.in-app .signup-field-error,
#signup-account-view.in-app .signup-field-error:empty {
  font-size: 0.75rem;
  line-height: 1.2;
  margin-top: 1px;
  min-height: 0.95em;
}
/* in-app-fold-end */

.signup-inapp-hint {
  color: #63718a;
  font-size: 0.75rem;
  line-height: 1.25;
  margin: 0 0 4px;
  text-align: center;
}

.signup-inapp-hint[hidden] {
  display: none !important;
}

.signup-inapp-hint button {
  background: transparent;
  border: 0;
  color: #174fbd;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0 0 0 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup-copy-status:empty {
  display: none;
}

.signup-copy-fallback {
  border: 1px solid #cbd5e4;
  border-radius: 6px;
  color: #172033;
  display: block;
  font: inherit;
  font-size: 0.75rem;
  margin-top: 4px;
  min-height: 28px;
  padding: 4px 6px;
  width: 100%;
}

.signup-copy-fallback[hidden] {
  display: none !important;
}

#signup-account-view.in-app :is(
  .pigeon-clerk-hide-social,
  .cl-header,
  .cl-socialButtonsRoot,
  .cl-socialButtons,
  .cl-socialButtonsBlockButton,
  .cl-dividerRow
) {
  display: none !important;
}

/* Used only when Clerk's mobile socialButtonsPlacement does not apply. */
#signup-account-view.signup-email-first .cl-main {
  display: flex;
  flex-direction: column;
}

#signup-account-view.signup-email-first .cl-form {
  order: 1;
}

#signup-account-view.signup-email-first :is(.cl-socialButtonsRoot, .cl-socialButtons, .cl-dividerRow) {
  order: 2;
}

.sign-in-panel {
  display: flex;
  justify-content: center;
  margin: 8px auto 18px;
  min-height: 280px;
  width: 100%;
}

/* Consent moves into the Clerk card after mount. The slot stays as tall as
   that card so the login link and footer do not shift. Heights follow the
   mounted card at 360px, 412px, and desktop. */
.signup-auth-slot {
  min-height: 880px;
  width: 100%;
}

@media (min-width: 380px) {
  .signup-auth-slot {
    min-height: 850px;
  }
}

@media (min-width: 700px) {
  .signup-auth-slot {
    min-height: 800px;
  }
}

/* Clerk mounts onto this node and then sets width:fit-content, which beats
   the class rule above. The card box is also width:25rem with a 100vw cap.
   On wider phones that preferred width is narrower than this column, so the
   card stays left-aligned. An id selector matches the mount node itself. */
#signup-account-view #sign-in-panel {
  max-width: 100%;
  width: 100%;
}

.sign-in-panel > * {
  margin-inline: auto;
  max-width: 100%;
  width: 100%;
}

/* Clerk's card box uses a fixed width plus side inset, so it sits narrower
   than the heading. Stretch it to this column and keep the shared center. */
#sign-in-panel :is(.cl-rootBox, .cl-cardBox, .cl-card) {
  margin-inline: auto;
  max-width: 100%;
  width: 100%;
}

.signup-skeleton {
  display: grid;
  gap: 12px;
  justify-items: center;
  width: 100%;
}

.signup-skeleton-status {
  color: #63718a;
  font-size: 0.95rem;
  margin: 0;
}

.signup-skeleton-bar {
  animation: signup-shimmer 1.2s ease-in-out infinite;
  background: linear-gradient(90deg, #e7eef8 0%, #f7faff 50%, #e7eef8 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  height: 44px;
}

.signup-skeleton-bar.short {
  height: 16px;
  width: 46%;
}

.signup-skeleton-bar.button {
  height: 42px;
  margin-inline: auto;
  margin-top: 8px;
  width: 48%;
}

.inline-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.inline-form label {
  color: #63718a;
  display: grid;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 6px;
  text-transform: uppercase;
}

.inline-form input {
  background: #ffffff;
  border: 1px solid #cbd5e4;
  border-radius: 6px;
  color: #172033;
  font: inherit;
  min-height: 40px;
  padding: 8px 10px;
  text-transform: none;
}

.primary-button {
  background: #2358d1;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  justify-self: start;
  min-height: 40px;
  padding: 9px 14px;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.error-text {
  color: #a32626;
}

.hidden {
  display: none !important;
}

.admin-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 0 20px 32px;
}

.admin-footer a {
  color: #51627d;
  font-size: 0.9rem;
}

.exit-survey[hidden] {
  display: none !important;
}

.exit-survey {
  align-items: end;
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 16px;
  position: fixed;
  z-index: 30;
}

.exit-survey-backdrop {
  background: rgba(23, 32, 51, 0.28);
  inset: 0;
  position: absolute;
}

.exit-survey-dialog {
  background: #ffffff;
  border: 1px solid #dce3ee;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(30, 48, 78, 0.12);
  margin-bottom: 12px;
  max-width: 440px;
  padding: 20px 20px 16px;
  position: relative;
  width: min(440px, 100%);
}

.exit-survey-close {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #51627d;
  cursor: pointer;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  min-height: 36px;
  min-width: 36px;
  position: absolute;
  right: 8px;
  top: 8px;
}

.exit-survey-form label {
  color: #172033;
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 36px 12px 0;
}

.exit-survey-form textarea {
  background: #ffffff;
  border: 1px solid #cbd5e4;
  border-radius: 6px;
  color: #172033;
  font: inherit;
  min-height: 96px;
  padding: 8px 10px;
  resize: vertical;
  width: 100%;
}

.exit-survey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.exit-survey-dismiss {
  background: transparent;
  border: 1px solid #cbd5e4;
  border-radius: 6px;
  color: #172033;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 40px;
  padding: 9px 14px;
}

.exit-survey-thanks {
  color: #172033;
  font-weight: 700;
  line-height: 1.4;
  margin: 28px 36px 12px 0;
}

.exit-survey-thanks:focus {
  outline: 2px solid #2358d1;
  outline-offset: 3px;
}

@keyframes signup-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signup-skeleton-bar {
    animation: none;
  }
}

/* Number step after company creation (signup-number-step.js). */
#signup-number-view [hidden] {
  display: none !important;
}

#signup-number-view .detail-grid {
  margin: 12px 0;
}

#signup-number-view .preview-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

#signup-number-view .preview-list > div {
  border: 1px solid #e7ecf4;
  border-radius: 8px;
  padding: 12px;
}

#signup-number-view .preview-list p {
  margin: 4px 0 8px;
}

#signup-number-view .secondary-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #c9d3e3;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#signup-number-view .secondary-button:disabled {
  opacity: 0.6;
  cursor: default;
}
