/* Signup flow */
:root {
  --cream: #F7F2E8;
  --cream-2: #F1ECDF;
  --cream-3: #FAF6EC;
  --ink: #1B1814;
  --ink-2: #5B544A;
  --ink-3: #8A8275;
  --ink-4: #B5AC9A;
  --gold: #C7A24A;
  --gold-dk: #A88431;
  --gold-soft: #F4E6BE;
  --gold-bg: #FBF3DA;
  --red: #C84B3C;
  --green: #2F7A4D;
  --border: #E8E0CC;
  --border-soft: #EFE9D8;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; }
a { color: inherit; text-decoration: none; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

.shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Left brand panel */
.brand-panel {
  background: var(--ink);
  color: #FAF6EC;
  padding: 36px 48px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.brand-panel .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-style: italic; font-size: 26px;
  color: #FAF6EC;
  white-space: nowrap;
}
.brand-mark {
  width: 36px; height: 36px;
  background: linear-gradient(140deg, var(--gold), var(--gold-dk));
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink); font-family: var(--serif); font-style: italic;
  border: 2px solid #fff;
}
.brand-panel .hd {
  margin-top: 80px;
  max-width: 460px;
}
.brand-panel h1 {
  font-family: var(--serif); font-style: italic;
  font-size: 56px; font-weight: 400;
  line-height: 1.1; letter-spacing: -0.005em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.brand-panel h1 em { font-style: normal; color: var(--gold-soft); }
.brand-panel p {
  font-size: 17px;
  color: rgba(250, 246, 236, 0.75);
  max-width: 420px;
  line-height: 1.5;
}
.testimonial {
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 480px;
}
.testimonial-q {
  font-family: var(--serif); font-style: italic;
  font-size: 24px; color: #FAF6EC; line-height: 1.3;
  margin: 0;
}
.testimonial-attr {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px;
}
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(140deg, #6B8A66, #2C4A3E);
}
.testimonial-name { font-weight: 600; font-size: 14.5px; color: #FAF6EC; }
.testimonial-role { font-size: 13px; color: rgba(250, 246, 236, 0.6); }

/* Right form panel */
.form-panel {
  background: var(--cream);
  padding: 60px 80px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.form-top {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
}
.steps {
  display: flex; gap: 6px; flex: 1;
}
.step-dot {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--cream-2);
  transition: background 0.4s;
}
.step-dot.done { background: var(--gold); }
.step-dot.active { background: var(--ink); }
.step-count {
  font-size: 13px; color: var(--ink-3); font-weight: 600;
  letter-spacing: 0.04em;
}

.form-body { max-width: 520px; }
.form-title {
  font-family: var(--serif); font-style: italic;
  font-size: 42px; font-weight: 400;
  line-height: 1.2; letter-spacing: -0.005em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.form-sub {
  color: var(--ink-2); font-size: 17px;
  margin-bottom: 36px; line-height: 1.45;
}

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field-label {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.field-hint { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.input, .select, .textarea {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15.5px;
  color: var(--ink);
  width: 100%;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199,162,74,0.18);
}
.textarea { resize: vertical; min-height: 100px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }

/* Logo upload */
.logo-section {
  display: grid; grid-template-columns: 140px 1fr; gap: 22px;
  align-items: center;
  margin-bottom: 22px;
}
.logo-preview {
  width: 140px; height: 140px;
  border-radius: 24px;
  background: var(--cream-2);
  border: 2px dashed var(--border);
  display: grid; place-items: center;
  overflow: hidden;
  position: relative;
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
  padding: 16px;
}
.logo-preview.filled { border-style: solid; }
.logo-preview svg, .logo-preview img { width: 100%; height: 100%; display: block; }
.logo-actions { display: flex; flex-direction: column; gap: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 14.5px; font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  justify-content: center;
  transition: all 0.15s;
}
.btn:hover:not(:disabled) { background: var(--cream-3); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary {
  background: var(--ink); color: #FAF6EC; border-color: var(--ink);
}
.btn.primary:hover:not(:disabled) { background: #2E2A24; color: #fff; }
.btn.gold { background: var(--gold); color: var(--ink); border-color: var(--gold-dk); }
.btn.gold:hover:not(:disabled) { background: var(--gold-dk); color: #FFF8E0; }
.btn.lg { padding: 16px 28px; font-size: 15.5px; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.full { width: 100%; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); white-space: nowrap; }

.actions {
  display: flex; gap: 10px; align-items: center;
  margin-top: 32px;
}
.actions .right { margin-left: auto; display: flex; gap: 10px; }

/* Plan picker */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.plan {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.plan:hover { border-color: var(--gold-soft); }
.plan.active { border-color: var(--ink); background: var(--cream-3); }
.plan-badge {
  position: absolute; top: -10px; right: 20px;
  background: var(--gold); color: var(--ink);
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  font-weight: 700;
}
.plan-name {
  font-size: 12.5px; font-weight: 600; color: var(--gold-dk);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.plan-price {
  font-family: var(--serif); font-style: italic;
  font-size: 36px; line-height: 1; margin: 8px 0 4px;
}
.plan-price .per { font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--ink-3); }
.plan-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }

/* Invite chips */
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
}
.chip button {
  all: unset; cursor: pointer; color: var(--ink-3);
  display: inline-flex; align-items: center;
}
.chip button:hover { color: var(--red); }
.chip-add { display: flex; gap: 6px; align-items: center; margin-top: 8px; }

/* Success */
.success {
  text-align: center;
  padding: 60px 0;
}
.success-icon {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--gold-bg);
  color: var(--gold-dk);
  display: grid; place-items: center;
  margin: 0 auto 22px;
  border: 2px solid var(--gold-soft);
}
.success h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 56px; line-height: 1; margin: 0 0 12px;
}
.success p { color: var(--ink-2); font-size: 17px; margin: 0 auto 30px; max-width: 460px; }
.success-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 28px;
  max-width: 460px;
  margin: 0 auto 30px;
  text-align: left;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
}
.success-card .logo-preview { width: 64px; height: 64px; border-radius: 14px; padding: 8px; }
.success-card h4 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.success-card .meta { font-size: 13.5px; color: var(--ink-3); }

/* Helper text & errors */
.help-text { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.error-text { font-size: 12.5px; color: var(--red); margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* Loading spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .brand-panel { padding: 32px; min-height: auto; }
  .brand-panel .hd { margin-top: 40px; }
  .brand-panel h1 { font-size: 44px; }
  .testimonial { display: none; }
  .form-panel { padding: 40px 32px; }
  .form-title { font-size: 40px; }
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-toggle button {
  background: transparent;
  border: none;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
  font-family: inherit;
}
.lang-toggle button.active {
  background: var(--ink);
  color: #FAF6EC;
}
.lang-toggle button:hover:not(.active) { color: var(--ink); }
