@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #f9f9f9;
  --gray-100: #f0f0f0;
  --gray-200: #e5e5e5;
  --gray-400: #b0b0b0;
  --gray-600: #666666;
  --gray-800: #333333;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.10);
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── HEADER ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.header-logo { height: 40px; }

.header-nav { display: flex; align-items: center; gap: 12px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  border: none;
  letter-spacing: -0.01em;
}

.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #222; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--black); border: 1px solid var(--gray-200); }
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); }

.btn-ghost { background: transparent; color: var(--gray-600); padding: 10px 16px; }
.btn-ghost:hover { color: var(--black); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 24px 80px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-logo {
  height: 56px;
  margin-bottom: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; display: inline-block; }

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 em { font-style: normal; color: var(--gray-600); }

.hero p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── SECTION ── */
.section {
  padding: 80px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 48px;
}

/* ── AGENT CARDS ── */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.agent-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.agent-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--gray-400);
}

.agent-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.agent-avatar {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}

.agent-card-meta { flex: 1; }

.agent-name {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 4px;
}

/* ── AGENT BRAND (serif logo in cards) ── */
.agent-card-brand {
  display: flex; flex-direction: column;
  gap: 1px; margin-bottom: 12px;
}

.agent-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1;
}

.agent-brand-by {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-400);
}

/* Nelson teal accent on "o" */
.nelson-font { color: var(--black); }
.nelson-o {
  position: relative; display: inline-block;
}
.nelson-o::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 13px; height: 7px;
  background: #2BBFBF;
  border-radius: 0 0 13px 13px;
}

/* Justin pink accent on "i" */
.justin-font { color: var(--black); }
.justin-i {
  position: relative; display: inline-block;
}
.justin-i::before {
  content: '';
  position: absolute;
  top: 3px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px;
  background: #E8197A; border-radius: 50%;
}

.agent-specialty {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.agent-tagline {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.5;
}

.agent-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}

.agent-price { font-size: 13px; color: var(--gray-600); }
.agent-price strong { font-size: 20px; color: var(--black); letter-spacing: -0.02em; }

/* ── STEPS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.step { display: flex; flex-direction: column; gap: 12px; }

.step-num {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
}

.step-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.step-desc { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

.pricing-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.pricing-card.featured .plan-price-sub,
.pricing-card.featured .plan-feature { color: var(--gray-400); }

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-card.featured .pricing-badge { background: var(--white); color: var(--black); }

.plan-name { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 16px; }
.pricing-card.featured .plan-name { color: var(--gray-400); }

.plan-price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px; }
.plan-price-sub { font-size: 13px; color: var(--gray-600); margin-bottom: 24px; }

.plan-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.plan-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-800);
}

.plan-feature svg { flex-shrink: 0; opacity: 0.6; }
.pricing-card.featured .plan-feature svg { opacity: 0.8; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--gray-100); margin: 0 48px; }

/* ── FOOTER ── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 48px;
  border-top: 1px solid var(--gray-200);
  margin-top: 80px;
}

.footer-logo { height: 22px; opacity: 0.5; }
.footer-copy { font-size: 13px; color: var(--gray-400); }

/* ── AUTH FORM ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--gray-50);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.auth-logo { height: 24px; margin-bottom: 36px; display: block; }

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 28px;
  gap: 0;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}

.auth-tab.active { color: var(--black); border-bottom-color: var(--black); }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.form-label { font-size: 13px; font-weight: 500; color: var(--gray-800); }

.form-input {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  color: var(--black);
  background: var(--white);
}

.form-input:focus { border-color: var(--black); }

.form-error {
  font-size: 13px;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}

.form-error.visible { display: block; }

.auth-submit { width: 100%; margin-top: 8px; }

/* ── DASHBOARD ── */
.dash-layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

.dash-main {
  flex: 1;
  padding: 48px;
  max-width: 1000px;
}

.dash-greeting { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.dash-sub { font-size: 14px; color: var(--gray-600); margin-bottom: 40px; }

.dash-section-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-trial { background: #fef9c3; color: #854d0e; }
.tag-active { background: #dcfce7; color: #166534; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 9999;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header { padding: 16px 20px; }
  .hero { padding: 64px 20px 56px; }
  .section { padding: 56px 20px; }
  .footer { padding: 24px 20px; flex-direction: column; gap: 12px; text-align: center; }
  .dash-main { padding: 24px 20px; }
  .divider { margin: 0 20px; }
}
