/* funnelcrew.ai — clean SaaS landing + chat widget. Distinct visual identity from Aurora. */
/* 22-08-2026: rebrand nocap.ai → funnelcrew.ai */
:root {
  --bg: #0a0a0a;
  --bg-alt: #fafafa;
  --bg-dark: #111;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --accent: #00d97e;       /* crew green — kept from the nocap.ai era (rebrand 22-08-2026) */
  --accent-hover: #00b86a;
  --hot: #ef4444;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
}

/* Hot lead banner */
#hot-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, var(--hot) 0%, #f87171 100%);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(239,68,68,0.3);
}
#hot-banner.hidden { display: none; }
#hot-banner #hot-dismiss {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 20px;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* Hero */
.hero {
  background: var(--bg);
  color: #fff;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,217,126,0.15) 0%, transparent 60%);
  pointer-events: none;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  font-family: "Courier New", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex: 1;
}
.brand span { color: var(--accent); }
.nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
}
.nav-link:hover { color: #fff; }
.nav-cta {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--accent-hover); }

.hero-content {
  max-width: 920px;
  margin: 60px auto 0;
  padding: 0 40px;
  text-align: center;
  position: relative;
}
.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 24px;
  font-weight: 700;
}
.hero-content h1 br { display: block; }
.sub {
  font-size: 19px;
  color: rgba(255,255,255,0.75);
  max-width: 680px;
  margin: 0 auto 14px;
}
.sub-stats {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 36px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-primary, .cta-secondary {
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.cta-primary {
  background: var(--accent);
  color: var(--bg);
  transition: background 0.15s, transform 0.15s;
}
.cta-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.cta-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.15s;
}
.cta-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section {
  padding: 80px 0;
}
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h2, .section-dark .lead { color: #fff; }
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin: 0 0 36px;
}
.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}
.section-dark .lead { color: rgba(255,255,255,0.7); }

/* Card grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.card .emoji { font-size: 36px; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Pricing card */
.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 32px rgba(0,217,126,0.1);
}
.pricing-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pricing-name { font-size: 22px; font-weight: 700; margin: 8px 0 16px; }
.pricing-price { font-size: 28px; margin: 0 0 6px; }
.pricing-price .strike { color: var(--muted); text-decoration: line-through; font-size: 18px; font-weight: 400; margin-right: 8px; }
.pricing-price strong { color: var(--accent); font-weight: 700; }
.pricing-recurring { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}
.pricing-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 14px;
}
.pricing-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 8px;
}

#demo-btn { display: inline-block; margin: 0 auto; }
.hint {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
}
.hint em { color: var(--ink); font-style: italic; }
.section-dark .hint { color: rgba(255,255,255,0.6); }
.section-dark .hint em { color: #fff; }

footer {
  background: var(--bg);
  color: rgba(255,255,255,0.6);
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
}
footer a { color: var(--accent); }
.footer-note { color: rgba(255,255,255,0.4); font-size: 12px; margin-top: 4px; }

/* Chat widget — adapted from Aurora */
#chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,217,126,0.4);
  z-index: 100;
}
#chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 720px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  z-index: 101;
  overflow: hidden;
}
#chat-panel.hidden { display: none; }
/* 07-05-2026: invite-gating UI + personalised hero */
.hero-content.hidden { display: none; }
.hero-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(0, 217, 126, 0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
#hero-personal h1 em { color: var(--accent); font-style: normal; }
#chat-toggle.hidden { display: none; }
#invite-gate {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
}
#invite-gate.hidden { display: none; }
#invite-gate p { margin: 0 0 10px 0; font-weight: 500; }
#chat-panel header {
  background: var(--bg);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#chat-panel header .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}
#chat-panel header strong { flex: 1; font-size: 14px; }
#chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.chat-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

#profile-panel {
  width: 280px;
  flex-shrink: 0;
  background: #fafafa;
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.profile-header h4 { margin: 0; font-size: 13px; letter-spacing: 1px; }
.profile-badge {
  background: var(--line);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.profile-badge.qualifying { background: #fef3c7; color: #92400e; }
.profile-badge.qualified { background: #d1fae5; color: #065f46; }
.profile-tag {
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
  margin-bottom: 14px;
}
#profile-fields { margin: 0; padding: 0; flex: 1; }
.profile-row { border-bottom: 1px solid #ececec; padding: 8px 0; }
.profile-row dt {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 2px;
}
.profile-row dd { margin: 0; font-size: 13px; word-wrap: break-word; }
.profile-row dd.filled { color: var(--accent); font-weight: 600; }

.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.msg.user {
  background: var(--accent);
  color: var(--bg);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.msg.assistant {
  background: #f0f0f0;
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg.system {
  align-self: center;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  background: transparent;
}
.msg .demo-link {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 8px;
  font-weight: 600;
}
.typing { align-self: flex-start; color: var(--muted); font-size: 13px; font-style: italic; }
#chat-form {
  display: flex;
  border-top: 1px solid var(--line);
  padding: 8px;
  gap: 8px;
}
#chat-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
}
#chat-input:focus { outline: none; border-color: var(--accent); }
#chat-form button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 720px) {
  .hero-content h1 { font-size: 36px; }
  #chat-panel { width: calc(100vw - 16px); height: calc(100vh - 80px); }
  #profile-panel { display: none; }
}
