/* ============================================================
   MAILEMENT — SIGNUP STYLES
   Same split-screen shell as login, with form + trust signals.
   Depends on app.css for design tokens.
   ============================================================ */

:root {
  --lp-grad:      linear-gradient(135deg, oklch(62% 0.18 280), oklch(58% 0.20 320));
  --lp-ink:       #0f1115;
  --lp-ink-soft:  #4a5159;
}
[data-theme="dark"] {
  --lp-ink:       #f4f6f8;
  --lp-ink-soft:  #a8aeb5;
}

body.signup-shell { background: var(--surface); margin: 0; }
.signup-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
}

.wordmark { font-weight: 700; letter-spacing: 0.02em; font-size: inherit; white-space: nowrap; font-feature-settings: "ss01"; }
.wordmark .mail { color: var(--text-strong); }
.wordmark .ment { background: linear-gradient(135deg, oklch(62% 0.18 280), oklch(58% 0.20 320)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- LEFT PANE ---------- */
.signup-pane {
  display: flex; flex-direction: column;
  padding: var(--s-6) var(--s-8);
  background: var(--surface);
  min-width: 0;
}
.signup-brand { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.signup-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-strong); text-decoration: none;
  padding: 6px 8px; margin-left: -8px;
  border-radius: var(--r-sm);
}
.signup-logo:hover { background: var(--surface-hover); text-decoration: none; }
.signup-logo .sh-mark {
  width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, oklch(62% 0.18 280), oklch(58% 0.20 320));
  letter-spacing: -0.02em;
}
.sh-logo-img { height: 30px; width: auto; display: block; }
.signup-top-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  padding: 6px 10px; border-radius: var(--r-sm); text-decoration: none;
}
.signup-top-link:hover { color: var(--text-strong); background: var(--surface-hover); text-decoration: none; }

.signup-form-wrap { flex: 1; display: flex; align-items: center; padding: var(--s-8) 0; }
.signup-form {
  width: 100%; max-width: 420px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: var(--s-5);
}
.signup-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.10em;
  text-transform: uppercase; color: oklch(50% 0.18 320);
  display: inline-flex; align-items: center; gap: 8px;
}
[data-theme="dark"] .signup-eyebrow { color: oklch(78% 0.14 320); }
.signup-eyebrow::before {
  content: ''; display: inline-block;
  width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
}
.signup-form h1 {
  font-size: clamp(32px, 3.6vw, 40px);
  letter-spacing: -0.025em; line-height: 1.05;
  color: var(--lp-ink); font-weight: 600;
}
.signup-form .signup-sub {
  font-size: 15px; line-height: 1.55;
  color: var(--lp-ink-soft);
  max-width: 40ch;
}

.signup-early-banner {
  background: color-mix(in oklch, oklch(58% 0.20 320) 10%, var(--surface));
  border: 1px solid color-mix(in oklch, oklch(58% 0.20 320) 28%, var(--border));
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  font-size: 13px; line-height: 1.55; color: var(--text);
}
.signup-early-banner strong { color: oklch(45% 0.20 320); }
[data-theme="dark"] .signup-early-banner strong { color: oklch(80% 0.14 320); }

.signup-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px var(--s-4);
  padding: 12px 14px;
  background: color-mix(in oklch, oklch(58% 0.20 320) 5%, var(--surface));
  border: 1px solid color-mix(in oklch, oklch(58% 0.20 320) 14%, var(--border));
  border-radius: var(--r-md);
  font-size: 13px;
}
.signup-trust .item { display: inline-flex; align-items: center; gap: 6px; color: var(--text-strong); font-weight: 500; }
.signup-trust .item svg { color: oklch(50% 0.18 320); flex-shrink: 0; }

.signup-form form { display: flex; flex-direction: column; gap: var(--s-3); }
.signup-form label {
  font-size: 13px; font-weight: 500; color: var(--text-strong);
  display: flex; flex-direction: column; gap: 6px;
}
.signup-form .hint { font-size: 11px; color: var(--text-muted); font-weight: 400; margin-top: 2px; }
.signup-form .input-lg {
  width: 100%; height: 46px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 0 14px;
  font-size: 14px; color: var(--text-strong);
  transition: border-color 80ms ease, box-shadow 80ms ease;
}
.signup-form .input-lg:hover { border-color: var(--border-strong); }
.signup-form .input-lg:focus {
  outline: none; border-color: oklch(58% 0.20 320);
  box-shadow: 0 0 0 3px oklch(58% 0.20 320 / 0.18);
}

.signup-terms {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--text-muted);
  line-height: 1.5; padding: 4px 0;
}
.signup-terms a { color: var(--text); font-weight: 500; }
.signup-terms a:hover { color: var(--text-strong); }

.signup-error {
  background: oklch(96% 0.04 25); color: oklch(40% 0.18 25);
  border: 1px solid oklch(86% 0.08 25);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-sm);
  font-size: 13px;
}
[data-theme="dark"] .signup-error { background: oklch(28% 0.07 25); color: oklch(82% 0.16 25); border-color: oklch(40% 0.12 25); }

.btn-signup {
  width: 100%; justify-content: center;
  height: 52px; font-size: 15px; font-weight: 500;
  background: linear-gradient(135deg, oklch(58% 0.20 320), oklch(48% 0.22 280));
  color: #fff;
  border: 0; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 24px -6px oklch(58% 0.20 320 / 0.45), inset 0 1px 0 0 rgb(255 255 255 / 0.20);
  transition: transform 100ms ease, box-shadow 100ms ease;
  margin-top: var(--s-2);
  text-decoration: none;
}
.btn-signup:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -8px oklch(58% 0.20 320 / 0.55), inset 0 1px 0 0 rgb(255 255 255 / 0.24); text-decoration: none; }
.btn-signup svg { transition: transform 120ms ease; }
.btn-signup:hover svg { transform: translateX(2px); }

.signup-foot-row {
  display: flex; justify-content: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
}
.signup-foot-row a { color: var(--text-strong); font-weight: 500; text-decoration: none; }
.signup-foot-row a:hover { text-decoration: underline; }

.signup-page-foot {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: 12px; color: var(--text-muted);
  margin-top: var(--s-6);
}
.signup-page-foot a { color: var(--text-muted); padding: 2px 6px; border-radius: 4px; text-decoration: none; }
.signup-page-foot a:hover { color: var(--text-strong); background: var(--surface-hover); text-decoration: none; }
.signup-page-foot .sep { color: var(--text-subtle); }

/* ---------- RIGHT VISUAL ---------- */
.signup-visual {
  position: relative;
  background: linear-gradient(135deg, oklch(48% 0.18 280), oklch(42% 0.22 320));
  color: #fff;
  overflow: hidden;
  display: flex; align-items: flex-start; justify-content: center;
  padding: var(--s-10) var(--s-10) var(--s-12);
  isolation: isolate;
}
.signup-visual::before {
  content: '';
  position: absolute; inset: -200px -150px auto auto;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgb(255 255 255 / 0.18), transparent 60%);
  filter: blur(40px); z-index: 0;
}
.signup-visual::after {
  content: '';
  position: absolute; left: -200px; bottom: -300px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, oklch(70% 0.20 320 / 0.40), transparent 60%);
  filter: blur(40px); z-index: 0;
}
.sv-bg-mark {
  position: absolute;
  bottom: -8vw; right: -3vw;
  font-size: clamp(420px, 48vw, 720px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgb(255 255 255 / 0.04);
  user-select: none; pointer-events: none;
  font-family: 'Geist', sans-serif;
}
.sv-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  display: flex; flex-direction: column; gap: var(--s-6);
  margin-top: var(--s-6);
}

.sv-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
  color: rgb(255 255 255 / 0.65);
  display: inline-flex; align-items: center; gap: 8px;
}
.sv-eyebrow::before {
  content: ''; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
}
.sv-pitch {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.25;
  color: #fff; text-wrap: balance;
}
.sv-pitch strong {
  background: linear-gradient(135deg, #fff, oklch(82% 0.10 320));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-weight: 600;
}

.sv-more-info {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; height: 40px;
  background: rgb(255 255 255 / 0.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / 0.30);
  border-radius: var(--r-sm);
  color: #fff;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.sv-more-info:hover {
  background: rgb(255 255 255 / 0.18);
  border-color: rgb(255 255 255 / 0.55);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}
.sv-more-info svg { transition: transform 120ms ease; }
.sv-more-info:hover svg { transform: translateX(2px); }

.sv-features { display: flex; flex-direction: column; gap: var(--s-3); list-style: none; padding: 0; margin: 0; }
.sv-features li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; line-height: 1.5;
  color: rgb(255 255 255 / 0.92);
}
.sv-features .ck {
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.26);
  color: #fff;
  display: grid; place-items: center;
  margin-top: 1px;
}
.sv-features strong { color: #fff; font-weight: 600; }

.sv-proof {
  display: flex; align-items: center; gap: 12px;
  color: rgb(255 255 255 / 0.85);
  font-size: 13px;
}
.sv-proof .avs { display: flex; }
.sv-proof .av {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid oklch(45% 0.20 300);
  background: var(--lp-grad);
  display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 600;
}
.sv-proof .av + .av { margin-left: -10px; }
.sv-proof .av:nth-child(2) { background: linear-gradient(135deg, oklch(62% 0.16 60), oklch(58% 0.18 30)); }
.sv-proof .av:nth-child(3) { background: linear-gradient(135deg, oklch(62% 0.14 160), oklch(58% 0.16 200)); }
.sv-proof .av:nth-child(4) { background: linear-gradient(135deg, oklch(62% 0.15 240), oklch(58% 0.17 260)); }
.sv-proof strong { color: #fff; font-weight: 600; }

/* Thanks page variant — when the form has been submitted */
.signup-thanks {
  display: flex; flex-direction: column; gap: var(--s-4);
  text-align: center; align-items: center;
}
.signup-thanks .ck-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, oklch(58% 0.16 155), oklch(50% 0.18 160));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 22px -6px oklch(54% 0.18 155 / 0.40);
}
.signup-thanks h1 { font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -0.025em; line-height: 1.1; color: var(--lp-ink); font-weight: 600; text-wrap: balance; }
.signup-thanks p { font-size: 15.5px; line-height: 1.55; color: var(--lp-ink-soft); max-width: 46ch; }
.signup-thanks .signup-thanks-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--s-3);
  padding: 12px 22px; height: 46px;
  background: var(--lp-ink); color: var(--bg);
  border-radius: var(--r-sm); font-size: 14px; font-weight: 500;
  text-decoration: none;
}
.signup-thanks .signup-thanks-cta:hover { transform: translateY(-1px); }

@media (max-width: 960px) {
  .signup-split { grid-template-columns: 1fr; }
  .signup-visual { display: none; }
  .signup-pane { padding: var(--s-5); }
}
