:root {
  --brand: #005f59;
  --brand-deep: #003f3b;
  --brand-bright: #029187;
  --ink: #10201f;
  --muted: #60706e;
  --line: #d7e6e3;
  --soft: #edf8f6;
  --danger: #b42318;
  --success: #067647;
  --shadow: 0 28px 80px rgba(0, 63, 59, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 10%, rgba(2, 145, 135, 0.2), transparent 28rem),
    linear-gradient(135deg, #f4fbf9 0%, #ffffff 46%, #edf7f5 100%);
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.join-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: 28px 0;
}

.brand-panel {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  border-radius: 34px;
  padding: clamp(24px, 4vw, 42px);
  color: #fff;
  background:
    linear-gradient(160deg, rgba(0, 95, 89, 0.98), rgba(0, 63, 59, 0.98)),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.2), transparent 24rem);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 900;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-panel .eyebrow { color: #9cf4ea; }

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

h1 {
  max-width: 560px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-copy p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
}

.proof-stack {
  display: grid;
  gap: 12px;
}

.proof-stack div {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
}

.proof-stack strong { font-size: 1rem; }
.proof-stack span { color: rgba(255, 255, 255, 0.72); line-height: 1.45; }

.flow-panel {
  width: min(100%, 720px);
}

.flow-card {
  border: 1px solid rgba(215, 230, 227, 0.95);
  border-radius: 30px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 70px rgba(0, 63, 59, 0.12);
}

.step-head { margin-bottom: 20px; }
.step-head p:not(.eyebrow), .muted { color: var(--muted); line-height: 1.65; }

.form-stack {
  display: grid;
  gap: 18px;
}

.brand-form {
  gap: 22px;
}

.form-section {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.form-section + .form-section {
  padding-top: 22px;
  border-top: 1px solid rgba(215, 230, 227, 0.9);
}

.form-section-head {
  display: grid;
  gap: 4px;
}

.form-section-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.25;
  font-weight: 900;
}

.form-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.optional-section {
  gap: 18px;
}

.setup-support-section {
  gap: 14px;
}

.checkbox-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(2, 145, 135, 0.2);
  border-radius: 20px;
  padding: 15px;
  background:
    linear-gradient(135deg, rgba(237, 248, 246, 0.96), rgba(255, 255, 255, 0.98));
}

.checkbox-card input {
  width: 21px;
  height: 21px;
  margin: 3px 0 0;
  accent-color: var(--brand-bright);
}

.checkbox-card span {
  display: grid;
  gap: 5px;
}

.checkbox-card strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.38;
}

.checkbox-card small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

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

label {
  display: grid;
  gap: 8px;
  color: #263937;
  font-size: 0.94rem;
  font-weight: 800;
}

.label-row {
  display: flex;
  min-height: 1.35em;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.optional-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  color: #38625e;
  background: var(--soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-hint {
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.35;
}

.muted-hint {
  color: var(--muted);
  font-weight: 700;
}

input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus, select:focus {
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 4px rgba(2, 145, 135, 0.14);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}

.password-toggle:hover {
  color: var(--brand);
  background: var(--soft);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payment-field {
  position: relative;
  padding-top: 12px;
}

.payment-summary {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  border: 1px solid rgba(2, 145, 135, 0.18);
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(237, 248, 246, 0.96), rgba(255, 255, 255, 0.98));
}

.payment-summary > div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.summary-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#paymentSummaryAmount {
  color: var(--brand-deep);
  font-size: clamp(2rem, 4vw, 2.55rem);
  line-height: 0.95;
  font-weight: 900;
  white-space: nowrap;
}

.summary-price-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-price-note span {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

#paymentSummaryOriginal {
  color: #667875;
  background: #fff;
  text-decoration: line-through;
}

#paymentSummaryDiscount {
  color: #075e53;
  background: #dff8f3;
}

#paymentSummaryMeta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.stripe-trust-badge {
  position: absolute;
  top: 0;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(99, 91, 255, 0.2);
  background: #fff;
  color: #40506a;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(16, 32, 31, 0.08);
}

.stripe-trust-badge strong {
  color: #635bff;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.lock-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(13, 148, 99, 0.12);
  color: #0d9463;
}

.lock-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stripe-card {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 21px 15px 15px;
  background: #fff;
}

.stripe-card:focus-within {
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 4px rgba(2, 145, 135, 0.14);
}

.primary {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 15px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 18px 34px rgba(0, 95, 89, 0.24);
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.primary:hover { transform: translateY(-1px); box-shadow: 0 22px 40px rgba(0, 95, 89, 0.28); }
.primary:disabled { cursor: not-allowed; opacity: 0.58; transform: none; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

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

.provider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 999px;
  padding: 13px 16px;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.provider-button svg {
  width: 20px;
  height: 20px;
}

.provider-button.google {
  border: 1px solid #d8dee8;
  color: #27303f;
  background: #fff;
}

.provider-button.apple {
  border: 1px solid #050505;
  color: #fff;
  background: #050505;
}

.provider-button:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(16, 32, 31, 0.12); }

.signin-link {
  margin: 20px 0 0;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

a { color: var(--brand); font-weight: 900; }

.notice {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 15px 17px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 63, 59, 0.08);
}

.notice.success { border-color: rgba(6, 118, 71, 0.24); background: #ecfdf3; color: var(--success); }
.notice.error { border-color: rgba(180, 35, 24, 0.22); background: #fff2f1; color: var(--danger); }
.notice.info { border-color: rgba(2, 145, 135, 0.18); background: var(--soft); }

.success-card {
  text-align: center;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 20px;
}

.success-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 4px;
  text-align: left;
}

.success-summary div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  background: var(--soft);
}

.success-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.success-summary strong {
  overflow-wrap: anywhere;
}

.pending-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.availability-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.download-button {
  display: grid;
  gap: 2px;
  border-radius: 18px;
  padding: 15px 18px;
  color: #fff;
  text-align: left;
  text-decoration: none;
  background: #0b1414;
}

.app-store-ready {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 16px 34px rgba(0, 95, 89, 0.22);
}

.app-store-ready:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(0, 95, 89, 0.26);
}

.play-store-ready {
  background: linear-gradient(135deg, #0b1414, #143b38);
  box-shadow: 0 16px 34px rgba(11, 20, 20, 0.2);
}

.play-store-ready:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(11, 20, 20, 0.24);
}

.download-button span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.download-button strong {
  font-size: 1.18rem;
}

.text-link {
  display: inline-flex;
  margin-top: 4px;
}

.hidden { display: none !important; }

@media (max-width: 920px) {
  .join-shell {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 18px 0 42px;
  }

  .brand-panel {
    min-height: auto;
  }

  .flow-panel {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .join-shell { width: min(100% - 22px, 1180px); }
  .split-fields, .provider-grid, .download-grid, .success-summary { grid-template-columns: 1fr; }
  .brand-panel, .flow-card { border-radius: 24px; }
  .form-section + .form-section { padding-top: 20px; }
  .label-row { align-items: flex-start; flex-direction: column; gap: 5px; }
}
