.page-signup {
  min-height: 100vh;
  color: #26374a;
  background: var(--paper);
}

.page-signup .signup-header {
  width: min(960px, calc(100% - 48px));
  height: 76px;
  border-bottom: 0;
}

.page-signup .brand-name,
.page-signup .brand-name span {
  color: #26374a;
}

.page-signup .brand-name {
  font-family: var(--brand-font, var(--font-sans));
}

.signup-home-link {
  color: #4c5c6d;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.signup-home-link:hover {
  color: #a26021;
}

.signup-main {
  width: min(620px, calc(100% - 40px));
  padding: 22px 0 54px;
  margin-inline: auto;
}

.signup-field-help code {
  color: #513d27;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.94em;
}

.signup-link-details { display: grid; gap: 0; padding: 11px 14px; margin: 0 0 16px; border: 1px solid #e0e2d9; border-radius: 12px; background: #f7f8f3; }
.signup-link-details > div { display: grid; grid-template-columns: minmax(105px, 0.65fr) minmax(0, 1.35fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid #e8ebe4; }
.signup-link-details > div:last-child { border-bottom: 0; }
.signup-link-details dt { color: #69756e; font-size: 0.74rem; }
.signup-link-details dd { margin: 0; color: #293e42; font-size: 0.8rem; font-weight: 750; overflow-wrap: anywhere; }
.signup-support-link { margin: 14px 0 0; color: #6c7375; font-size: 0.74rem; line-height: 1.65; }
.signup-support-link a { color: #22534b; font-weight: 750; text-underline-offset: 3px; }
.signup-step > .signup-status[data-kind="success"] { padding: 12px 14px; border: 1px solid #cddfd2; border-radius: 11px; color: #315443; background: #f2f8f2; }

.signup-panel {
  padding: 34px 38px 38px;
  border-color: #e5e0d7;
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(44, 56, 68, 0.08);
}

.signup-step > .eyebrow {
  margin-bottom: 9px;
}

.signup-step h1 {
  margin: 0 0 12px;
  color: #26374a;
  font-size: clamp(1.55rem, 4vw, 2rem);
  line-height: 1.42;
  letter-spacing: -0.035em;
}

.signup-step h1:focus {
  outline: none;
}

.signup-lede {
  margin: 0 0 22px;
  color: #586679;
  font-size: 0.87rem;
  line-height: 1.8;
}

.signup-unavailable {
  padding: 12px 14px;
  margin: 0;
  border: 1px solid #e5d8c2;
  border-radius: 11px;
  color: #725a36;
  background: #fffaf2;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.7;
}

.signup-form {
  display: grid;
  gap: 10px;
}

.signup-form > label,
.signup-field > label,
.signup-org-type legend {
  color: #34465b;
  font-size: 0.82rem;
  font-weight: 750;
}

.signup-form label > span,
.signup-field label > span,
.signup-org-type legend > span,
.signup-consent > span > span {
  margin-left: 0.35em;
  color: #8a6341;
  font-size: 0.68rem;
  font-weight: 650;
}

.signup-form input[type="email"],
.signup-form input[type="text"],
.signup-form select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #d5d6d1;
  border-radius: 11px;
  color: #26374a;
  background: #fff;
  font-size: 0.9rem;
  line-height: 1.5;
}

.signup-form input::placeholder {
  color: #99a0a6;
}

.signup-form input:focus-visible,
.signup-form select:focus-visible {
  border-color: #d79b52;
  outline-color: #e9b972;
}

.signup-form input[readonly] {
  color: #556273;
  background: #f4f4f1;
}

.signup-field-help {
  margin: -4px 0 3px;
  color: #727c86;
  font-size: 0.7rem;
  line-height: 1.65;
}

.signup-form .button,
.signup-step > .button {
  min-height: 50px;
  font-size: 0.9rem;
}

.signup-form .button--primary,
.signup-step .button--primary {
  border-color: #efbb79;
  color: #26374a;
  background: #f2c58d;
  box-shadow: 0 6px 14px rgba(141, 93, 40, 0.1);
}

.signup-form .button--primary:hover,
.signup-step .button--primary:hover {
  border-color: #e8a859;
  color: #26374a;
  background: #eeb979;
}

.signup-form .button--outline,
.signup-step .button--outline {
  border-color: #d8d9d4;
  color: #4e5e6e;
  background: #fff;
}

.signup-form .button:disabled,
.signup-step .button:disabled {
  cursor: wait;
  opacity: 0.63;
}

.signup-status {
  margin: 3px 0 0;
  color: #a34538;
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.signup-status[data-kind="pending"] {
  color: #735a32;
}

.signup-status[data-kind="success"] {
  color: #315847;
}

.signup-recipient-line {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #526071;
  background: #f4f5f2;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.signup-recipient-line strong {
  color: #2d4155;
  font-weight: 750;
}

.signup-back-link {
  display: flex;
  min-height: 38px;
  justify-content: flex-start;
  padding-inline: 0;
  margin-top: 8px;
  font-size: 0.78rem;
}

.signup-new-account {
  margin: 18px 0 0;
  color: #5c6874;
  font-size: 0.78rem;
  line-height: 1.7;
}

.signup-new-account a {
  color: #315d55;
  font-weight: 750;
  text-underline-offset: 3px;
}

.signup-waiting-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 16px;
  margin-top: 10px;
}

.signup-waiting-actions .signup-back-link { margin-top: 0; }

.signup-field {
  display: grid;
  gap: 8px;
}

.signup-field > label {
  margin-bottom: -1px;
}

.signup-org-type {
  min-width: 0;
  padding: 0;
  margin: 2px 0 0;
  border: 0;
}

.signup-org-type legend {
  padding: 0;
  margin-bottom: 8px;
}

.signup-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signup-choice {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #d8ddd9;
  border-radius: 11px;
  color: #405064;
  background: #fff;
  font-size: 0.81rem;
  font-weight: 700;
  cursor: pointer;
}

.signup-choice:has(input:checked) {
  border-color: #c69455;
  background: #fff8ed;
}

.signup-choice input,
.signup-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: #a76b2f;
}

.signup-consent-block {
  padding: 13px;
  margin-top: 6px;
  border: 1px solid #e6dece;
  border-radius: 12px;
  background: #fffaf2;
}

.signup-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #4e4b43;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.7;
  cursor: pointer;
}

.signup-consent input {
  margin: 2px 0 0;
}

.signup-consent > span {
  min-width: 0;
}

.signup-disclosure {
  margin: 9px 0 0 28px;
  color: #68717a;
  font-size: 0.68rem;
  line-height: 1.65;
}

.signup-disclosure summary {
  color: #5e6570;
  font-weight: 700;
  cursor: pointer;
}

.signup-disclosure p {
  margin: 6px 0 0;
}

.signup-consent-note {
  margin: 7px 0 0 28px;
  color: #77736a;
  font-size: 0.66rem;
  line-height: 1.6;
}

.signup-plan-note {
  margin: 16px 0;
  padding: 14px 15px;
  border: 1px solid #d8dccd;
  border-radius: 12px;
  background: #f4f6ef;
}
.signup-plan-note h2 { margin: 0 0 6px; color: #294c49; font-size: 0.88rem; }
.signup-plan-note p { margin: 5px 0 0; color: #5d6962; font-size: 0.73rem; line-height: 1.65; }

@media (max-width: 600px) {
  .page-signup .signup-header {
    width: calc(100% - 36px);
    height: 66px;
  }

  .signup-main {
    width: calc(100% - 36px);
    padding: 12px 0 38px;
  }

  .signup-panel {
    padding: 25px 20px 28px;
    border-radius: 17px;
  }

  .signup-step h1 {
    font-size: 1.55rem;
  }

  .signup-lede {
    margin-bottom: 19px;
    font-size: 0.8rem;
  }

  .signup-waiting-actions { align-items: stretch; flex-direction: column; }
  .signup-waiting-actions .button { width: 100%; justify-content: center; }
  .signup-link-details > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }

}

@media (max-width: 360px) {
  .page-signup .signup-header,
  .signup-main {
    width: calc(100% - 28px);
  }

  .signup-panel {
    padding-inline: 16px;
  }
}
