* {
  box-sizing: border-box;
}

:root {
  --bg: #0d0e10;
  --panel: #151719;
  --panel-strong: #1d2024;
  --text: #f7f3ea;
  --muted: #aaa49a;
  --line: rgba(255, 255, 255, 0.11);
  --gold: #d7a84f;
  --gold-light: #f0c766;
  --green: #45d483;
  --danger: #ff6b6b;
  --black: #08090a;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(215, 168, 79, 0.16), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.signup-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 14, 16, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: var(--gold);
  color: var(--black);
}

.login-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  font-weight: 800;
}

.signup-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(560px, 1.22fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(28px, 5vw, 72px);
}

.intro-panel {
  position: sticky;
  top: 104px;
  min-height: 520px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(8, 9, 10, 0.28), rgba(8, 9, 10, 0.86)),
    url("https://images.unsplash.com/photo-1599351431202-1e0f0137899a?auto=format&fit=crop&w=1100&q=85") center/cover;
}

.intro-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 14, 16, 0.1), rgba(13, 14, 16, 0.72));
}

.intro-panel > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 640px;
  margin-bottom: 20px;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 0.98;
}

.intro-panel p:not(.eyebrow),
.form-head p,
.success-card p {
  color: var(--muted);
  line-height: 1.6;
}

.url-preview {
  position: absolute;
  left: clamp(24px, 4vw, 42px);
  right: clamp(24px, 4vw, 42px);
  bottom: clamp(24px, 4vw, 42px);
  z-index: 1;
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 14, 16, 0.84);
  backdrop-filter: blur(14px);
}

.url-preview small {
  color: var(--muted);
}

.url-preview strong {
  overflow-wrap: anywhere;
}

.form-panel {
  min-width: 0;
}

.signup-card,
.success-card {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(21, 23, 25, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.form-head h2,
.success-card h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 900;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.plan-option {
  cursor: pointer;
}

.plan-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-option span {
  display: grid;
  min-height: 150px;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-strong);
}

.plan-option input:checked + span {
  border-color: rgba(240, 199, 102, 0.75);
  box-shadow: 0 0 0 4px rgba(240, 199, 102, 0.11);
}

.plan-option strong {
  color: var(--text);
}

.plan-option small {
  color: var(--muted);
  line-height: 1.4;
}

.plan-option em {
  align-self: end;
  color: var(--gold-light);
  font-style: normal;
  font-weight: 900;
}

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

.field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.field span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.slug-field {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: var(--panel-strong);
  color: var(--text);
}

.field input {
  padding: 0 14px;
}

.field input:focus,
.slug-field:focus-within {
  border-color: rgba(240, 199, 102, 0.7);
  box-shadow: 0 0 0 4px rgba(240, 199, 102, 0.12);
}

.slug-field {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slug-field span {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.slug-field input {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.span-2 {
  grid-column: span 2;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0 18px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.primary-btn {
  width: 100%;
  background: var(--gold);
  color: var(--black);
}

.secondary-btn {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
}

.primary-btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.message {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.success-card {
  gap: 18px;
}

.success-card .field input {
  color: var(--gold-light);
}

.success-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1050px) {
  .signup-shell {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    position: relative;
    top: auto;
    min-height: 460px;
  }
}

@media (max-width: 720px) {
  .signup-header {
    align-items: stretch;
    flex-direction: column;
  }

  .signup-shell {
    padding: 18px;
  }

  .plans,
  .field-grid,
  .success-actions {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .intro-panel {
    min-height: 520px;
  }
}