html {
  background: #f4f7fb;
}

html,
body.signup-page {
  width: 100%;
  min-width: 0;
}

body.signup-page {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(14, 165, 166, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
  color: var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
}

.page {
  width: 100vw;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.shell,
.signup-panel {
  width: 100%;
  min-width: 0;
  display: grid;
  place-items: center;
}

.shell {
  max-width: none;
  margin: 0;
}

.signup-panel {
  max-width: 340px;
}

.signup-panel--payment {
  max-width: 820px;
}

.signup-card {
  width: 100%;
  display: grid;
  gap: 13px;
  padding: 26px 24px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.signup-card--payment {
  max-width: 820px;
}

.signup-brand {
  color: var(--ink);
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 1.34rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.signup-card h2 {
  margin: -4px 0 2px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

form {
  display: grid;
  gap: 10px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  position: relative;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

input,
select {
  width: 100%;
  max-width: 100%;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 4px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

select {
  padding-right: 30px;
}

input:focus,
select:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--primary), 0 0 0 2px rgba(0, 72, 138, 0.1);
}

input::placeholder {
  color: #94a3b8;
}

.timezone-detect-note {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.submit {
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.submit:hover,
.submit:focus-visible {
  background: #0f766e;
  border-color: #0f766e;
  outline: none;
}

form > .submit {
  margin-top: 10px;
}

.flash,
.banner {
  padding: 10px 12px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 6px;
  background: rgba(254, 242, 242, 0.92);
  color: #991b1b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.banner {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--muted);
}

.banner strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.banner.success {
  background: rgba(236, 253, 245, 0.92);
  border-color: rgba(16, 185, 129, 0.22);
  color: #047857;
}

.banner.success strong {
  color: #047857;
}

.banner.warning {
  background: rgba(255, 251, 235, 0.92);
  border-color: rgba(245, 158, 11, 0.24);
  color: #92400e;
}

.banner.warning strong {
  color: #92400e;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.signup-payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.signup-payment-info,
.signup-payment-actions {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.summary-card {
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 6px;
  background: #ffffff;
}

.summary-card .kicker {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-card strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
}

.plans-inline {
  display: grid;
  gap: 8px;
}

.plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 6px;
  background: #ffffff;
}

.plan-row strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
}

.plan-row span,
.help {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.payment-shell {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 6px;
  background: #ffffff;
}

.activation-complete {
  display: grid;
  gap: 12px;
}

.activation-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.activation-toast[hidden] {
  display: none;
}

.activation-toast strong,
.activation-toast span {
  display: block;
}

.activation-toast strong {
  color: #065f46;
  font-size: 12px;
  line-height: 1.25;
}

.activation-toast span {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.activation-toast__close {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(4, 120, 87, 0.18);
  border-radius: 6px;
  background: #ffffff;
  color: #047857;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.activation-toast__close:hover,
.activation-toast__close:focus-visible {
  border-color: #047857;
  outline: none;
}

.activation-complete__hero {
  padding: 14px;
}

.activation-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.redirect-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(0, 72, 138, 0.16);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.redirect-panel strong {
  color: var(--ink);
  font-size: 12px;
}

.redirect-panel__button {
  justify-self: center;
  width: auto;
  min-width: 150px;
  margin-top: 2px;
  text-decoration: none;
}

.promo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.promo-grid .submit {
  width: auto;
  min-width: 78px;
  padding-inline: 14px;
}

#paypal-button-container,
#signup-error,
#signup-success {
  margin-top: 4px;
}

.errorlist {
  margin: 4px 0 0;
  padding: 8px 10px;
  list-style: none;
  border-radius: 6px;
  background: rgba(254, 242, 242, 0.92);
  color: #991b1b;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.support-link {
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.support-link:hover,
.support-link:focus-visible {
  color: #0f766e;
  text-decoration: underline;
  outline: none;
}

@media (max-width: 560px) {
  .page {
    padding: 14px 10px;
  }

  .signup-panel {
    max-width: 300px;
  }

  .signup-panel--payment {
    max-width: 340px;
  }

  .signup-card {
    padding: 24px 22px;
  }

  .activation-toast {
    align-items: stretch;
    flex-direction: column;
  }

  .activation-toast__close {
    width: 100%;
  }

  .field-grid,
  .summary-grid,
  .activation-summary-grid,
  .signup-payment-grid {
    grid-template-columns: 1fr;
  }
}
