/* Signup-specific composition. All visual values resolve through DESIGN.md tokens. */
.step-indicator {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 1.5rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.step-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--fh-border-accent);
  transition: background-color 0.2s ease,
    transform 0.2s ease;
}

.step-item.active .step-dot {
  background: var(--fh-yellow);
  transform: scale(1.25);
}

.step-item.completed .step-dot,
.step-connector.completed {
  background: var(--fh-success);
}

.step-label {
  color: var(--fh-text-muted);
  font-size: var(--fs-small);
  transition: color 0.2s ease;
}

.step-item.active .step-label { color: var(--fh-yellow); }
.step-item.completed .step-label { color: var(--fh-success); }

.step-connector {
  width: 2rem;
  height: 1px;
  margin-top: 0.3125rem;
  background: var(--fh-border-accent);
  transition: background-color 0.2s ease;
}

.auth-container.signup-wide { max-width: 60rem; }
.auth-container.signup-narrow { max-width: 28.75rem; }
.auth-container.signup-medium { max-width: 35rem; }
.auth-container.signup-confirm { max-width: 38.75rem; }

.step2-plan-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--fh-border-accent);
  border-radius: var(--radius-md);
  background: var(--fh-bg-secondary);
}

.step2-plan-badge__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step2-plan-badge__name {
  color: var(--fh-text-primary);
  font-size: var(--fs-small);
  font-weight: 700;
}

.step2-plan-badge__price {
  color: var(--fh-text-secondary);
  font-size: var(--fs-small);
}

.step2-plan-badge__change {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fh-yellow);
  font-size: var(--fs-small);
  text-underline-offset: 0.2em;
}

.step2-plan-badge__change:hover { text-decoration: underline; }

.pc-gold {
  --pc-gold: var(--fh-yellow);
  --pc-gold-dim: color-mix(in srgb, var(--fh-yellow) 8%, transparent);
  --pc-gold-border: color-mix(in srgb, var(--fh-yellow) 32%, var(--fh-border-accent));
}

.pc-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.pc-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--fh-border-accent);
  border-radius: var(--radius-lg);
  background: var(--fh-bg-secondary);
  cursor: pointer;
  transition: border-color 0.15s ease,
    background-color 0.15s ease;
}

.pc-card:hover { border-color: var(--fh-border-hover); }
.pc-card--highlight { border-color: var(--pc-gold-border); }

.pc-card--selected {
  border-color: var(--pc-gold);
  background: color-mix(in srgb, var(--fh-bg-secondary) 94%, var(--fh-yellow));
}

.pc-card:focus-visible {
  outline: 2px solid var(--fh-yellow);
  outline-offset: 3px;
}

.pc-card__header {
  padding: 1.75rem 1.5rem 1.125rem;
  border-bottom: 1px solid var(--fh-border-accent);
}

.pc-card__name {
  margin: 0 0 0.375rem;
  color: var(--fh-text-primary);
  font-size: var(--fs-h3);
  font-weight: 700;
}

.pc-card__price {
  margin-bottom: 0.25rem;
  color: var(--fh-text-primary);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1;
}

.pc-card__price small,
.pc-card__term,
.pc-card__metric-label {
  color: var(--fh-text-secondary);
  font-size: var(--fs-small);
  font-weight: 400;
}

.pc-card__body {
  flex-grow: 1;
  padding: 1.25rem 1.5rem;
}

.pc-card__metric {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.125rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px dashed var(--fh-border-accent);
}

.pc-card__metric-value {
  color: var(--pc-gold);
  font-size: var(--fs-h2);
  font-weight: 700;
}

.pc-card__features {
  margin: 0 0 1.125rem;
  padding: 0;
  list-style: none;
}

.pc-card__features li {
  position: relative;
  padding: 0.375rem 0 0.375rem 1rem;
  color: var(--fh-text-secondary);
  font-size: var(--fs-small);
  font-weight: 500;
}

.pc-card__features li::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  left: 0;
  width: 0.25rem;
  height: 0.25rem;
  background: var(--pc-gold);
}

.pc-card__features-inherited {
  margin-bottom: 0.125rem;
  color: var(--fh-text-muted) !important;
  font-style: italic;
}

.pc-card__features-inherited::before { display: none !important; }
.pc-card__license { margin-bottom: 0; }

.pc-card__license-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--fh-border-accent);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fh-text-secondary);
  font-size: var(--fs-small);
  font-weight: 500;
}

.pc-card__license-tag--commercial {
  border-color: var(--pc-gold-border);
  background: var(--pc-gold-dim);
  color: var(--pc-gold);
}

.pc-card__footer { padding: 0 1.5rem 1.5rem; }

.pc-card__btn {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.6875rem 1rem;
  border: 1px solid var(--fh-border-accent);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fh-text-primary);
  font-size: var(--fs-small);
  font-weight: 600;
  text-align: center;
  transition: border-color 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease;
}

.pc-card__btn:hover {
  border-color: var(--pc-gold);
  color: var(--pc-gold);
}

.pc-card__btn--gold,
.pc-card__btn--selected,
.pc-card__btn--gold:hover {
  border-color: var(--pc-gold);
  background: var(--pc-gold);
  color: var(--natural-100);
}

.pc-card__price-original,
.price-original {
  margin-right: 0.375rem;
  color: var(--fh-text-muted);
  font-size: var(--fs-body);
  font-weight: 400;
  text-decoration: line-through;
}

.pc-card__price-promo,
.price-promo { color: var(--fh-success); }

.badge-promo {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--fh-success);
  color: var(--fh-text-primary);
  font-size: var(--fs-small);
  font-weight: 700;
}

.review-section {
  height: 100%;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--fh-border-accent);
  border-radius: var(--radius-lg);
  background: var(--fh-bg-secondary);
}

.review-section .review-label {
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--fh-border-accent);
  color: var(--fh-text-muted);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-section .review-item {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.375rem 0.75rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--fh-border-accent);
  font-size: var(--fs-small);
}

.review-section .review-item:last-child { border-bottom: 0; }

.review-section .review-item strong {
  color: var(--fh-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.review-section .review-item span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--fh-text-secondary);
}

.field-error {
  margin-top: 0.25rem;
  color: var(--fh-danger);
  font-size: var(--fs-small);
}

.promo-banner {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--fh-success) 45%, var(--fh-border-accent));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--fh-success) 10%, transparent);
  text-align: center;
}

.promo-banner .promo-code { color: var(--fh-success); font-weight: 700; }
.promo-banner .promo-desc { color: var(--fh-text-secondary); font-size: var(--fs-small); }

.signup-promo-status { color: var(--fh-success); font-size: var(--fs-small); }
.signup-quiet-action,
.signup-legal { font-size: var(--fs-small); }
.signup-uppercase { text-transform: uppercase; }
.signup-plan-separator { margin-left: 0.25rem; color: var(--fh-text-muted); }
.signup-plan-credits { margin-left: 0.25rem; color: var(--fh-yellow); }
.signup-plan-name { color: var(--fh-yellow); font-weight: 600; }
.signup-price-compact,
.signup-back { font-size: var(--fs-small); }
.signup-submit { min-height: 44px; padding: 0.75rem; }

.recaptcha-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

@media (max-width: 47.99rem) {
  .auth-container.signup-wide,
  .auth-container.signup-confirm { max-width: 100%; }
  .pc-plans { grid-template-columns: 1fr; }
  .step-actions { flex-direction: column; gap: 0.75rem; }
  .step-actions .btn { width: 100%; }
  .g-recaptcha { transform: scale(0.85); transform-origin: center; }
}

@media (prefers-reduced-motion: reduce) {
  .step-dot,
  .step-label,
  .step-connector,
  .pc-card,
  .pc-card__btn { transition: none; }
}
