/* marketing.css — public site + auth (UI_REDESIGN.md §11.5). Merged from the per-area files and pricing.css in C1. */

@layer legacy {

/* ===== pricing (was pricing.css) ===== */
/* Pricing: quiet surfaces, aligned plans, and a readable feature comparison. */
.plan { display: flex; flex-direction: column; min-width: 0; padding: var(--space-5); background: var(--bg); position: relative; }

/* ===== shell =====
   Header, drawer and footer moved to shell-public.css (@layer shell). */

/* ============ waitlist modal: visible × (data-modal-close) ============ */
dialog.waitlist-modal { position: fixed; inset: 0; margin: auto; padding: 0; border-radius: var(--radius-xl); }
dialog.waitlist-modal .waitlist-modal-x { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 1; }
dialog.waitlist-modal .waitlist-modal-inner { padding: var(--space-7) var(--space-6) var(--space-6); }
dialog.waitlist-modal .waitlist-modal-inner h2 { padding-right: var(--space-8); }
dialog.waitlist-modal .form-actions { margin-top: var(--space-5); }
@media (pointer: coarse) { dialog.waitlist-modal .waitlist-modal-x { width: 44px; height: 44px; top: var(--space-2); right: var(--space-2); } }

/* ===== auth ===== */
/* mkt/auth.css — owned by the auth build step (UI_REDESIGN.md §11.2). Merged into marketing.css in C1.
   Login, register, 2FA verify, password reset, verify email, change-email confirm,
   team invite and the profile-setup wizard: one centred card in the public shell.
   Every rule is scoped to .auth-shell. Tokens only; no dependency on base.css,
   dashboard.css, effects.css or legacy.css. Django-rendered widgets are styled
   CSS-only (every field still renders). */

.auth-shell {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  padding: clamp(var(--space-10), 9vh, var(--space-18)) 0 var(--space-18);
  background: var(--bg);
  overflow: visible;
}
.auth-shell > .container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ---------- the card ---------- */
.auth-shell .auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transform: none;
}
.auth-shell .auth-card::before, .auth-shell .auth-card::after { content: none; display: none; }
.auth-shell .auth-card.auth-card-wide { max-width: 520px; }

.auth-shell .auth-card .eyebrow { margin-bottom: var(--space-3); }
.auth-shell .auth-card h1 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-semi);
  line-height: var(--leading-heading);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: currentColor;
  overflow-wrap: anywhere;
}
.auth-shell .auth-card .auth-lede {
  margin: 0 0 var(--space-6);
  max-width: none;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--ink-2);
}
.auth-shell .auth-card > :last-child { margin-bottom: 0; }
.auth-shell .auth-card form { margin: 0; }

/* ---------- fields (Django widgets inside .form-field) ---------- */
.auth-shell .form-field { margin-bottom: var(--space-4); }
.auth-shell .form-field > label { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--ink); margin-bottom: 6px; display: block; }
.auth-shell .form-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.auth-shell .form-field select {
  width: 100%;
  min-height: var(--control-lg);
  font-size: var(--text-md);
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
}
.auth-shell .form-field select { padding-right: var(--space-8); }
.auth-shell .form-field input:focus, .auth-shell .form-field select:focus {
  outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); box-shadow: none;
}
.auth-shell .form-field .helptext { display: block; margin-top: 6px; font-size: var(--text-xs); line-height: var(--leading-snug); color: var(--ink-3); }
.auth-shell .form-field .helptext ul { margin: 0; padding-left: var(--space-4); }
.auth-shell .form-field .helptext li + li { margin-top: 2px; }
.auth-shell .errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--danger); font-size: var(--text-sm); }
.auth-shell .form-errors { margin: 0 0 var(--space-5); }
.auth-shell .form-row { display: flex; gap: var(--space-3); }
.auth-shell .form-row .form-field { flex: 1 1 0; min-width: 0; }
.auth-shell .required-marker { color: var(--warn); font-weight: var(--weight-semi); }

.auth-shell .checkbox-option {
  display: flex; align-items: flex-start; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: var(--weight-normal); line-height: var(--leading-relaxed);
  color: var(--ink-2); cursor: pointer;
}
.auth-shell .checkbox-option input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--action); }
.auth-shell .checkbox-option a { font-weight: var(--weight-medium); }

/* ---------- actions + footer links ---------- */
.auth-shell .form-actions { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.auth-shell .form-actions .btn { width: 100%; min-height: var(--control-lg); font-size: var(--text-md); }
.auth-shell .form-footer {
  margin: var(--space-5) 0 0;
  max-width: none;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.auth-shell .form-footer + .form-footer { margin-top: var(--space-2); }
.auth-shell .form-footer a, .auth-shell .form-footer .link-btn { font-weight: var(--weight-medium); color: var(--action-ink); font-size: inherit; }
.auth-shell .form-footer a:hover, .auth-shell .form-footer .link-btn:hover { color: var(--link-hover); }

/* ---------- profile-setup wizard ---------- */
/* Progress: done segments in the action colour, remaining ones on a visible
   track in both themes (the old track used --bg-elevated and vanished on the
   white light-theme card). */
.auth-shell .profile-setup-progress { display: flex; gap: 6px; margin: 0 0 var(--space-6); }
.auth-shell .profile-setup-dot {
  flex: 1 1 0;
  width: auto;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
}
.auth-shell .profile-setup-dot.is-done { background: var(--action); }

.auth-shell .acct-choices { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.auth-shell .acct-choices .radio-option,
.auth-shell .acct-choices .checkbox-option {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--control-md);
  margin: 0;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out);
}
.auth-shell .acct-choices .radio-option:hover,
.auth-shell .acct-choices .checkbox-option:hover { border-color: var(--input-border); }
.auth-shell .acct-choices input { width: 15px; height: 15px; margin: 0; flex: none; accent-color: var(--action); }
.auth-shell .acct-choices .radio-option:has(input:checked),
.auth-shell .acct-choices .checkbox-option:has(input:checked) { border-color: var(--action); background: var(--action-soft); }
.auth-shell .acct-choices label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }

.auth-shell .settings-checkbox-list {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); overflow: hidden;
}
.auth-shell .settings-checkbox-card {
  display: flex; align-items: flex-start; gap: var(--space-3);
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 0; border-top: 1px solid var(--border); border-radius: 0;
  background: none;
  cursor: pointer;
  transition: background-color .15s var(--ease-out);
}
.auth-shell .settings-checkbox-card:first-child { border-top: 0; }
.auth-shell .settings-checkbox-card:hover { background: var(--sunken); border-color: var(--border); }
.auth-shell .settings-checkbox-card:has(input:checked) { background: var(--action-soft); border-color: var(--border); }
.auth-shell .settings-checkbox-card:first-child:hover,
.auth-shell .settings-checkbox-card:first-child:has(input:checked) { border-top: 0; }
.auth-shell .settings-checkbox-card input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--action); }
.auth-shell .settings-checkbox-card strong { display: block; font-size: var(--text-base); font-weight: var(--weight-medium); color: var(--ink); }
.auth-shell .settings-checkbox-desc { display: block; margin-top: 2px; font-size: var(--text-sm); color: var(--ink-2); line-height: var(--leading-snug); }
.auth-shell .settings-checkbox-card:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .auth-shell { min-height: 0; padding: var(--space-6) 0 var(--space-12); }
  .auth-shell .auth-card { padding: var(--space-6) var(--space-5); border-radius: var(--radius-lg); }
}
@media (max-width: 400px) {
  .auth-shell .form-row { flex-direction: column; gap: 0; }
}

} /* @layer legacy */
