/* Tomorrow.bio Business — access surfaces (login / signup / 2FA setup+challenge).
   Builds on the shared token layer + primitives in /styles.css (design tokens,
   PP Neue Montreal, .tb-btn / .tb-field / .tb-card / .tb-pill / .tb-eyebrow).
   Matches design/design_handoff_business_suite/reference/business-signup and
   business-login. No build step; served as-is from /business-assets/access.css. */

/* ------------------------------------------------------------------------ */
/* Page shell                                                                */
/* ------------------------------------------------------------------------ */
.tb-access { font-family: var(--font-sans); color: var(--tb-text-body); }
.tb-access-page { min-height: 100vh; background: var(--tb-off-white); display: flex; flex-direction: column; }

.tb-access-header {
  background: var(--tb-white); border-bottom: 2px solid var(--tb-hairline-strong);
  padding: 18px 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.tb-access-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.tb-access-brand img { height: 28px; width: auto; }
.tb-access-tag { font-size: 14px; color: var(--tb-text-muted); font-weight: var(--fw-medium); }

.tb-access-main { flex: 1; display: flex; justify-content: center; padding: 64px 24px 96px; }
.tb-access-main--center { align-items: center; padding: 64px 24px; }
.tb-access-shell { width: 100%; display: flex; flex-direction: column; gap: 32px; }

/* ------------------------------------------------------------------------ */
/* Card                                                                      */
/* ------------------------------------------------------------------------ */
.tb-access-card {
  background: var(--tb-white); border-radius: var(--radius-lg); padding: 44px;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 24px; align-items: stretch;
}
.tb-access-card--center { text-align: center; align-items: center; gap: 20px; }

.tb-access-intro h1 { font-size: 30px; font-weight: var(--fw-medium); letter-spacing: -0.02em; line-height: 1.15; color: var(--tb-dark-blue); margin: 0 0 8px; }
.tb-access-intro--center h1 { font-size: 28px; }
.tb-access-lead { font-size: 16px; line-height: 1.6; color: var(--tb-text-muted); margin: 0; }
.tb-access-foot { font-size: 14px; color: var(--tb-text-muted); text-align: center; margin: 0; }
.tb-access-link { display: inline-block; font-size: 14px; color: var(--tb-text-muted); text-decoration: underline; background: none; border: 0; cursor: pointer; font-family: inherit; }
.tb-access-card--center .tb-access-link { align-self: center; }

.tb-access-icon {
  align-self: center; width: 56px; height: 56px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center; font-size: 24px;
}
.tb-access-icon--mail { background: var(--tb-blue-tint); color: var(--tb-blue); }
.tb-access-icon--check { width: 64px; height: 64px; font-size: 28px; background: var(--tb-mint-tint); color: var(--tb-green); }

.tb-access-form { display: flex; flex-direction: column; gap: 20px; }
.tb-btn--block { width: 100%; }

.tb-access-divider { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--tb-text-muted); font-size: 13px; }
.tb-access-divider::before, .tb-access-divider::after { content: ""; flex: 1; height: 1px; background: var(--tb-hairline-strong); }

/* ------------------------------------------------------------------------ */
/* Progress dots (6-step signup flow)                                       */
/* ------------------------------------------------------------------------ */
.tb-progress { display: flex; align-items: center; gap: 8px; }
.tb-progress-step { display: flex; align-items: center; gap: 8px; flex: 1; }
.tb-progress-dot {
  flex: none; width: 30px; height: 30px; border-radius: var(--radius-pill); display: inline-flex;
  align-items: center; justify-content: center; font-weight: 600; font-size: 13px;
  background: var(--tb-white); color: var(--tb-text-muted); border: 1px solid var(--tb-blue-gray);
}
.tb-progress-dot--reached { background: var(--tb-cobalt); color: var(--tb-white); border-color: var(--tb-cobalt); }
.tb-progress-line { flex: 1; height: 2px; background: var(--tb-hairline-strong); }
.tb-progress-line--done { background: var(--tb-cobalt); }

/* ------------------------------------------------------------------------ */
/* Field groupings                                                          */
/* ------------------------------------------------------------------------ */
.tb-field-group { display: flex; flex-direction: column; gap: 6px; }
.tb-field-group-label { font-weight: 600; font-size: 14px; color: var(--tb-dark-blue); }
.tb-hint { font-size: 13px; color: var(--tb-text-muted); margin: 0; line-height: 1.5; }
.tb-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tb-boxed { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--tb-hairline-strong); border-radius: var(--radius-md); }

/* Code input (TOTP setup / challenge) */
.tb-field--code input { letter-spacing: 0.4em; text-align: center; font-size: 22px; font-weight: 600; }

/* ------------------------------------------------------------------------ */
/* Segmented toggle (region / currency / billing cycle) — real radios,      */
/* works without JS; access.js only swaps the tax-id/country-state fields.  */
/* ------------------------------------------------------------------------ */
.tb-segment { display: flex; border: 1px solid var(--tb-blue-gray); border-radius: var(--radius-xs); overflow: hidden; }
.tb-segment-input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; padding: 0; }
.tb-segment-option {
  flex: 1; padding: 12px 0; text-align: center; font-weight: 600; font-size: 14px;
  color: var(--tb-dark-blue); background: var(--tb-white); cursor: pointer; user-select: none;
}
.tb-segment-input:checked + .tb-segment-option { background: var(--tb-cobalt); color: var(--tb-white); }
.tb-segment-input:focus-visible + .tb-segment-option { outline: 3px solid var(--tb-blue); outline-offset: -3px; }

/* ------------------------------------------------------------------------ */
/* Cryopreservation funding radio cards                                     */
/* ------------------------------------------------------------------------ */
.tb-funding-group { gap: 12px; }
.tb-funding-option {
  position: relative; display: flex; align-items: flex-start; gap: 10px; text-align: left;
  padding: 16px; border: 1px solid var(--tb-blue-gray); border-radius: var(--radius-md);
  background: var(--tb-white); cursor: pointer;
}
.tb-funding-option:has(.tb-funding-input:checked) { border-color: var(--tb-cobalt); background: var(--tb-blue-tint); }
.tb-funding-input {
  appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin-top: 2px;
  border-radius: var(--radius-pill); border: 1px solid var(--tb-blue-gray); background: var(--tb-white);
}
.tb-funding-input:checked { border: 5px solid var(--tb-cobalt); }
.tb-funding-body { display: flex; flex-direction: column; gap: 6px; }
.tb-funding-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-funding-name { font-weight: 600; font-size: 15px; color: var(--tb-dark-blue); }
.tb-funding-desc { font-size: 13px; line-height: 1.55; color: var(--tb-text-muted); }

.tb-pill--mint { background: var(--tb-mint-tint); color: var(--tb-green); }
.tb-pill--dark { background: var(--tb-dark-blue); color: var(--tb-white); }

/* ------------------------------------------------------------------------ */
/* Terms scroll box + funding echo                                          */
/* ------------------------------------------------------------------------ */
.tb-terms-scroll {
  max-height: 340px; overflow-y: auto; border: 1px solid var(--tb-hairline-strong); border-radius: var(--radius-md);
  padding: 24px; background: var(--tb-off-white); display: flex; flex-direction: column; gap: 14px;
}
.tb-terms-scroll strong { font-size: 16px; font-weight: 600; color: var(--tb-dark-blue); }
.tb-terms-scroll p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--tb-text-muted); }
.tb-terms-echo { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--tb-blue-tint); font-size: 14px; color: var(--tb-dark-blue); }
.tb-terms-dot { flex: none; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--tb-blue); }

.tb-check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; line-height: 1.5; color: var(--tb-dark-blue); }
.tb-check { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--tb-cobalt); }

/* ------------------------------------------------------------------------ */
/* Payment (pending Tomorrow.bio activation)                                */
/* ------------------------------------------------------------------------ */
.tb-payment-pending { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--tb-hairline-strong); border-radius: var(--radius-md); background: var(--tb-off-white); }
.tb-payment-pending-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tb-payment-pending-head > span:first-child { font-weight: 600; font-size: 15px; color: var(--tb-dark-blue); }
.tb-payment-pending p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--tb-text-muted); }

/* ------------------------------------------------------------------------ */
/* QR / manual secret (2FA setup)                                           */
/* ------------------------------------------------------------------------ */
.tb-qr-wrap { display: flex; justify-content: center; margin: 4px 0; }
.tb-qr-wrap img { border: 1px solid var(--tb-hairline-strong); border-radius: var(--radius-md); padding: 12px; background: var(--tb-white); }
.tb-manual-secret {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; font-weight: 600; letter-spacing: 0.12em;
  background: var(--tb-off-white); border-radius: var(--radius-sm); padding: 14px; text-align: center;
  margin: 0; word-break: break-all; color: var(--tb-dark-blue);
}

/* ------------------------------------------------------------------------ */
/* Responsive                                                                */
/* ------------------------------------------------------------------------ */
@media (max-width: 640px) {
  .tb-access-header { padding: 14px 20px; }
  .tb-access-main { padding: 32px 16px 64px; }
  .tb-access-main--center { padding: 32px 16px; }
  .tb-access-card { padding: 28px 22px; }
  .tb-field-row { grid-template-columns: 1fr; }
}
