/* ==========================================================================
   Flowzco — Page-specific styles
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* HERO (Home)                                                            */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  background: var(--bg);
}
.hero-bg-blob-1 { top: -160px; left: -120px; width: 480px; height: 480px; }
.hero-bg-blob-2 { bottom: -200px; right: -140px; width: 520px; height: 520px; }
.hero-content { position: relative; z-index: 2; max-width: 880px; }
.hero h1 { font-size: clamp(38px, 6.6vw, 74px); margin-bottom: 22px; }
.hero .lede { font-size: clamp(16px, 2vw, 19px); margin: 0 auto 38px; max-width: 620px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hero-note { font-size: 13px; color: var(--text-dimmer); margin-bottom: 54px; }

.hero-scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-dimmer); z-index: 2;
}
.hero-scroll-cue .line { width: 1px; height: 30px; background: var(--green); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100% { opacity: 0.2; } 50% { opacity: 1; } }

/* ---------------------------------------------------------------------- */
/* What is Flowzco                                                        */
/* ---------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
.pillar { padding: 26px; border-radius: var(--r-lg); }
.pillar .card-icon { margin-bottom: 16px; }
.pillar h3 { font-size: 17px; }
.pillar p { font-size: 14px; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Choose Your AI Workforce (showcase cards)                              */
/* ---------------------------------------------------------------------- */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.showcase-card { text-align: left; }
.showcase-card .badge { margin-bottom: 16px; }
@media (max-width: 980px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .showcase-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Built for Everyone (split)                                             */
/* ---------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.split-panel { border-radius: var(--r-xl); padding: 42px; position: relative; overflow: hidden; }
.split-panel.for-individuals { background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.22); }
.split-panel.for-business { background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.24); }
.split-panel .panel-icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.for-individuals .panel-icon { background: rgba(16,185,129,0.18); color: var(--green-light); }
.for-business .panel-icon { background: rgba(99,102,241,0.2); color: var(--purple-light); }
.split-panel .panel-icon svg { width: 26px; height: 26px; }
.split-panel h3 { font-size: 26px; margin-bottom: 8px; }
.split-panel p.lede { margin-bottom: 26px; }
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.check-list .check { width: 22px; height: 22px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
.for-individuals .check { background: rgba(16,185,129,0.22); color: var(--green-light); }
.for-business .check { background: rgba(99,102,241,0.24); color: var(--purple-light); }
.check svg { width: 13px; height: 13px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* CTA band                                                                */
/* ---------------------------------------------------------------------- */
.cta-band {
  border-radius: var(--r-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band .lede { margin: 0 auto 30px; }
.cta-band .hero-actions { margin-bottom: 0; }

/* ---------------------------------------------------------------------- */
/* Assistant cards (Marketplace + Home preview)                           */
/* ---------------------------------------------------------------------- */
.assistant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 980px) { .assistant-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .assistant-grid { grid-template-columns: 1fr; } }
.assistant-card { display: flex; flex-direction: column; height: 100%; }
.assistant-card .a-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.assistant-card .a-icon {
  width: 50px; height: 50px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-tint); border: 1px solid var(--border); color: var(--green-light);
}
.assistant-card .a-icon svg { width: 24px; height: 24px; }
.assistant-card .a-name { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.assistant-card .a-creator { font-size: 12.5px; color: var(--text-dimmer); }
.assistant-card .a-desc { font-size: 14.5px; margin: 4px 0 18px; flex: 1; }
.assistant-card .a-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dimmer); margin-bottom: 18px; }
.assistant-card .a-rating .stars { color: var(--green-light); letter-spacing: 1px; }
.assistant-card .a-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.assistant-card .a-price { font-family: var(--font-heading); font-weight: 700; font-size: 16px; }
.assistant-card .a-price span { font-size: 12px; color: var(--text-dimmer); font-weight: 500; font-family: var(--font-body); }
.assistant-card .a-flags { position: absolute; top: 18px; right: 18px; display: flex; gap: 6px; }

/* ---------------------------------------------------------------------- */
/* Marketplace page                                                       */
/* ---------------------------------------------------------------------- */
.page-header {
  padding: calc(var(--nav-h) + 56px) 0 50px;
  text-align: center;
  background: var(--bg);
}
.page-header h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 14px; }
.page-header .lede { margin: 0 auto; }

.search-bar {
  max-width: 560px; margin: 34px auto 0;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
}
.search-bar svg { width: 18px; height: 18px; color: var(--text-dimmer); flex: none; }
.search-bar input { background: none; border: none; outline: none; color: var(--text); font-size: 15px; width: 100%; }
.search-bar input::placeholder { color: var(--text-dimmer); }

.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.category-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 9px 18px; border-radius: var(--r-full); font-size: 13.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  transition: all 0.3s var(--ease);
}
.pill:hover { color: var(--text); border-color: var(--border-strong); }
.pill.active { background: var(--brand-solid); color: #ffffff; border-color: transparent; }

.sort-select {
  padding: 10px 16px; border-radius: var(--r-full); background: var(--surface);
  border: 1px solid var(--border); color: var(--text); font-size: 13.5px; font-weight: 600;
}
.sort-select option { background: var(--bg-elevated); color: var(--text); }

.marketplace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .marketplace-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .marketplace-grid { grid-template-columns: 1fr; } }

.empty-state { text-align: center; padding: 70px 20px; color: var(--text-dimmer); }

.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.section-label h3 { margin: 0; font-size: 20px; }
.section-label .badge { margin-left: 4px; }

/* ---------------------------------------------------------------------- */
/* Workforce dashboard                                                    */
/* ---------------------------------------------------------------------- */
.dash-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 46px; }
.stat-card { padding: 24px; }
.stat-card .stat-value { font-family: var(--font-heading); font-size: 32px; font-weight: 700; }
.stat-card .stat-label { font-size: 13px; color: var(--text-dimmer); margin-top: 6px; }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.workforce-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 50px; }
@media (max-width: 900px) { .workforce-grid { grid-template-columns: 1fr; } }

.wf-card { position: relative; }
.wf-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.wf-icon { width: 48px; height: 48px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; }
.wf-icon svg { width: 22px; height: 22px; }
.wf-icon.green { background: rgba(16,185,129,0.16); color: var(--green-light); }
.wf-icon.purple { background: rgba(99,102,241,0.18); color: var(--purple-light); }
.wf-name { font-family: var(--font-heading); font-weight: 700; font-size: 17px; }
.wf-role { font-size: 13px; color: var(--text-dimmer); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-full); margin-left: auto; }
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.status-pill.active { background: rgba(16,185,129,0.16); color: var(--green-light); }
.status-pill.active .dot { background: var(--green-light); box-shadow: 0 0 8px var(--green); }
.status-pill.idle { background: rgba(255,255,255,0.08); color: var(--text-dim); }
.status-pill.idle .dot { background: var(--text-dimmer); }
.status-pill.paused { background: rgba(99,102,241,0.14); color: var(--purple-light); }
.status-pill.paused .dot { background: var(--purple-light); }

.wf-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.wf-metric .m-value { font-family: var(--font-heading); font-weight: 700; font-size: 19px; }
.wf-metric .m-label { font-size: 11.5px; color: var(--text-dimmer); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 3px; }
.progress-track { height: 6px; border-radius: var(--r-full); background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; border-radius: var(--r-full); background: var(--brand-solid); }
.wf-actions { display: flex; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }

.activity-feed { display: flex; flex-direction: column; gap: 2px; }
.activity-item { display: flex; align-items: center; gap: 16px; padding: 16px 6px; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-solid); flex: none; }
.activity-body { flex: 1; }
.activity-body .who { font-weight: 600; font-size: 14px; margin-right: 6px; }
.activity-body .what { font-size: 14px; color: var(--text-dim); }
.activity-time { font-size: 12.5px; color: var(--text-dimmer); flex: none; }

/* ---------------------------------------------------------------------- */
/* Create — assistant builder                                             */
/* ---------------------------------------------------------------------- */
.builder-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; max-width: 1040px; margin: 0 auto; }
@media (max-width: 900px) { .builder-layout { grid-template-columns: 1fr; max-width: 640px; } }

.step-list { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--nav-h) + 24px); }
.step-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid transparent; color: var(--text-dimmer); font-size: 14px; font-weight: 600;
  transition: all 0.3s var(--ease); cursor: pointer;
}
.step-item .num {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; background: rgba(255,255,255,0.07); color: var(--text-dimmer);
}
.step-item.active { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.step-item.active .num { background: var(--brand-solid); color: #ffffff; }
.step-item.done .num { background: rgba(16,185,129,0.2); color: var(--green-light); }
.step-item.done { color: var(--text-dim); }

.builder-panel { padding: 44px 48px; border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
.builder-panel h2 { font-size: 27px; margin-bottom: 8px; }
.builder-panel > p.lede { margin-bottom: 32px; }
@media (max-width: 640px) { .builder-panel { padding: 30px 24px; } }

.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 9px; color: var(--text-dim); }
.form-input, .form-textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text); font-size: 14.5px; outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.form-input:focus, .form-textarea:focus { border-color: var(--green); background: rgba(255,255,255,0.06); }
.form-textarea { min-height: 110px; resize: vertical; }

.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .option-grid { grid-template-columns: 1fr; } }
.option-card {
  padding: 18px; border-radius: var(--r-md); border: 1px solid var(--border);
  background: rgba(255,255,255,0.03); cursor: pointer; transition: all 0.3s var(--ease);
  text-align: left;
}
.option-card:hover { border-color: var(--border-strong); }
.option-card.selected { border-color: var(--green); background: rgba(16,185,129,0.08); box-shadow: 0 0 0 1px var(--green); }
.option-card .opt-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.option-card .opt-desc { font-size: 12.5px; color: var(--text-dimmer); }

.knowledge-drop {
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg);
  padding: 46px 20px; text-align: center; color: var(--text-dimmer);
}
.knowledge-drop svg { width: 34px; height: 34px; margin: 0 auto 14px; color: var(--text-dimmer); }

.knowledge-link-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: var(--r-md); background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-dim);
}
.knowledge-link-item svg.kl-icon { width: 15px; height: 15px; flex: none; color: var(--text-dimmer); }
.knowledge-link-item .kl-url { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-link-item .kl-remove { flex: none; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-dimmer); cursor: pointer; transition: all 0.2s var(--ease); }
.knowledge-link-item .kl-remove:hover { background: rgba(255,255,255,0.1); color: #fff; }
.knowledge-link-item .kl-remove svg { width: 11px; height: 11px; }

.permission-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--border); }
.permission-row:last-child { border-bottom: none; }
.permission-row .p-title { font-weight: 600; font-size: 14.5px; }
.permission-row .p-desc { font-size: 12.5px; color: var(--text-dimmer); margin-top: 2px; }

.switch { position: relative; width: 44px; height: 25px; border-radius: var(--r-full); background: rgba(255,255,255,0.12); flex: none; transition: background 0.3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--ease); }
.switch.on { background: var(--brand-solid); }
.switch.on::after { transform: translateX(19px); }
.switch.disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------------------------------------------------------------------- */
/* Workforce dashboard — real-data rows (assistants/tasks/activity)       */
/* ---------------------------------------------------------------------- */
.wf-row-list { display: flex; flex-direction: column; }
.wf-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.wf-row:last-child { border-bottom: none; }
.wf-row-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wf-row-icon {
  width: 38px; height: 38px; border-radius: var(--r-md); flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-tint); border: 1px solid var(--border); color: var(--green-light);
}
.wf-row-icon svg { width: 18px; height: 18px; }
.wf-row-title { font-weight: 600; font-size: 14.5px; }
.wf-row-sub { font-size: 12.5px; color: var(--text-dimmer); margin-top: 2px; }
.wf-row-status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-full); flex: none; border: 1px solid var(--border); }
.wf-row-status.active, .wf-row-status.done { color: var(--green-light); border-color: var(--green-light); background: var(--brand-tint); }
.wf-row-status.idle, .wf-row-status.open { color: var(--text-dimmer); }
.wf-row-status.paused, .wf-row-status.in_progress { color: #e0b34d; border-color: #e0b34d; }
.wf-row-remove { background: none; border: none; color: var(--text-dimmer); cursor: pointer; padding: 6px; border-radius: var(--r-sm); }
.wf-row-remove:hover { color: #e5484d; background: rgba(229,72,77,0.1); }
.wf-row-remove svg { width: 16px; height: 16px; display: block; }
.wf-signin-prompt { text-align: center; padding: 60px 20px; }
.wf-signin-prompt p { color: var(--text-dimmer); margin: 10px auto 20px; max-width: 380px; }

.builder-nav { display: flex; justify-content: space-between; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); }

.review-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 26px; }
.review-item { padding: 16px 18px; border-radius: var(--r-md); background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.review-item .r-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dimmer); margin-bottom: 5px; }
.review-item .r-value { font-weight: 600; font-size: 14.5px; }

/* ---------------------------------------------------------------------- */
/* Pricing                                                                 */
/* ---------------------------------------------------------------------- */
.billing-toggle { display: inline-flex; align-items: center; gap: 14px; margin: 30px auto 10px; padding: 6px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border); }
.billing-toggle button { padding: 10px 20px; border-radius: var(--r-full); font-size: 13.5px; font-weight: 600; color: var(--text-dimmer); transition: all 0.3s var(--ease); }
.billing-toggle button.active { background: var(--brand-solid); color: #ffffff; }
.save-badge { font-size: 11.5px; font-weight: 700; color: var(--green-light); background: rgba(16,185,129,0.14); padding: 3px 9px; border-radius: var(--r-full); margin-left: 6px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; margin-top: 20px; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; } }

.price-card { display: flex; flex-direction: column; padding: 34px; }
.price-card.highlight {
  border: 1px solid rgba(99,102,241,0.4);
  background: var(--bg-elevated);
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(6,9,18,0.35);
}
.price-card.highlight:hover { transform: scale(1.03) translateY(-4px); }
.price-card .plan-name { font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
.price-card .plan-tagline { font-size: 13.5px; color: var(--text-dimmer); margin: 6px 0 22px; }
.price-card .plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 26px; }
.price-card .plan-price .amount { font-family: var(--font-heading); font-size: 44px; font-weight: 700; }
.price-card .plan-price .period { font-size: 14px; color: var(--text-dimmer); }
.price-card .plan-features { display: flex; flex-direction: column; gap: 13px; margin: 4px 0 28px; flex: 1; }
.price-card .plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.price-card .plan-features .check { width: 18px; height: 18px; border-radius: 50%; background: rgba(16,185,129,0.16); color: var(--green-light); display: flex; align-items: center; justify-content: center; flex: none; }
.price-card .plan-features .check svg { width: 11px; height: 11px; }
.price-card .plan-features li.con { color: var(--text-dimmer); }
.price-card .plan-features .check.con-mark { background: rgba(255,255,255,0.06); color: var(--text-dimmer); }
.most-popular { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item { padding: 22px 26px; }
.faq-item h3 { font-size: 15.5px; margin-bottom: 8px; }
.faq-item p { font-size: 14px; margin: 0; }

/* ---------------------------------------------------------------------- */
/* Feature comparison table                                               */
/* ---------------------------------------------------------------------- */
.compare-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--bg-elevated); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--border); }
.compare-table thead th { font-family: var(--font-heading); font-size: 14.5px; font-weight: 700; color: var(--text); padding-top: 20px; }
.compare-table th.col-highlight { color: var(--purple-light); }
.compare-table td.feat-label, .compare-table th:first-child { text-align: left; color: var(--text-dim); font-weight: 500; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .cell-check { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: rgba(16,185,129,0.14); color: var(--green-light); align-items: center; justify-content: center; }
.compare-table .cell-check svg { width: 11px; height: 11px; }
.compare-table .cell-dash { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; color: var(--text-dimmer); }
.compare-table .cell-dash svg { width: 11px; height: 11px; }
.compare-table .cell-text { color: var(--text-dim); font-weight: 500; }

/* ---------------------------------------------------------------------- */
/* Empty states                                                           */
/* ---------------------------------------------------------------------- */
.empty-state-card {
  text-align: center; padding: 64px 32px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px dashed var(--border-strong);
  max-width: 460px; margin: 0 auto;
}
.section-light .empty-state-card { background: var(--light-surface); border-color: var(--light-border); }
.empty-icon {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-hover); color: var(--text-dimmer);
}
.section-light .empty-icon { background: rgba(11,17,32,0.06); }
.empty-icon svg { width: 24px; height: 24px; }
.empty-state-card h3 { font-size: 17px; margin-bottom: 8px; }
.empty-state-card p { font-size: 14px; max-width: 320px; margin: 0 auto; }

/* ---------------------------------------------------------------------- */
/* Category grid (Home "Discover AI Assistants")                          */
/* ---------------------------------------------------------------------- */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.category-tile {
  padding: 24px 14px; text-align: center; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.category-tile:hover { border-color: var(--border-strong); background: var(--surface-hover); transform: translateY(-2px); }
.category-tile .cat-icon {
  width: 42px; height: 42px; border-radius: var(--r-md); margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-tint); color: var(--purple-light);
}
.category-tile .cat-icon svg { width: 20px; height: 20px; }
.category-tile .cat-name { font-size: 13.5px; font-weight: 600; }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------------- */
/* Dashboard preview mock (Home "Manage Your AI Workforce")               */
/* ---------------------------------------------------------------------- */
.dash-mock { padding: 8px; }
.dash-mock-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.dash-mock-stat { padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.dash-mock-stat .dm-value { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--text-dimmer); }
.dash-mock-stat .dm-label { font-size: 11.5px; color: var(--text-dimmer); margin-top: 4px; }
@media (max-width: 700px) { .dash-mock-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------------- */
/* Workforce — persistent sidebar (always visible, not closeable)         */
/* Sits flush against the navbar (the navbar's own bottom border reads as */
/* the seam line) and, via position:sticky inside .wf-shell, never runs   */
/* past the bottom of the workforce content — it stops right at the top   */
/* of the footer instead of extending down the whole viewport.            */
/* ---------------------------------------------------------------------- */
/* align-items: stretch (the default) is what makes the sidebar's own
   background/border run the full height of the content column, all the way
   down to the footer — while position:sticky keeps its nav items pinned
   near the top of the viewport as you scroll through the (much taller)
   dashboard content. */
.wf-shell { display: flex; align-items: stretch; }

.wf-sidebar {
  position: relative; left: 0; width: 256px; flex: 0 0 256px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-top: none; border-left: none;
  border-radius: 0 0 var(--r-lg) 0;
  box-shadow: var(--shadow-card);
  padding: 18px 14px; z-index: 150;
  align-self: stretch;
  transition: width 0.3s var(--ease), flex-basis 0.3s var(--ease), padding 0.3s var(--ease);
}
.wf-sidebar-inner { position: sticky; top: var(--nav-h); max-height: calc(100vh - var(--nav-h) - 20px); overflow-y: auto; }
.wf-sidebar-head { padding: 4px 8px 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wf-sidebar-title { font-family: var(--font-heading); font-weight: 700; font-size: 15.5px; color: var(--text); }

.wf-sidebar-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: var(--r-md);
  color: var(--text-dim); font-size: 14.5px; font-weight: 500; margin-bottom: 3px;
  transition: all 0.25s var(--ease); border: 1px solid transparent;
  animation: sidebarItemIn 0.5s var(--ease) both;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wf-sidebar-item:hover { background: var(--surface); color: var(--text); }
.wf-sidebar-item.active { background: var(--surface-hover); color: var(--text); border-color: var(--border-strong); }
.wf-sidebar-item svg { width: 18px; height: 18px; flex: none; }
@keyframes sidebarItemIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

.wf-content { flex: 1; min-width: 0; }
.wf-section { display: none; }
.wf-section.active { display: block; animation: fadeUp 0.4s var(--ease) both; }

/* ---------------------------------------------------------------------- */
/* Auth pages — login / signup / verify email / OAuth callback            */
/* ---------------------------------------------------------------------- */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 40px) 20px 40px; background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 40px 36px; box-shadow: var(--shadow-card); }
.auth-logo { width: 50px; height: 50px; margin: 0 auto 20px; filter: drop-shadow(0 6px 14px rgba(6,9,18,0.35)); }
.auth-card h1 { font-size: 24px; text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; font-size: 14px; color: var(--text-dim); margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--text-dimmer); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border-radius: var(--r-md); background: #ffffff; color: #1f1f1f; font-weight: 600; font-size: 14px; border: 1px solid var(--border-strong); transition: all 0.25s var(--ease); }
.google-btn:hover { background: #f5f5f5; }
.google-btn svg { width: 18px; height: 18px; }
.auth-footer-link { text-align: center; font-size: 13.5px; color: var(--text-dim); margin-top: 22px; }
.auth-footer-link a { color: var(--green-light); font-weight: 600; }
.auth-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; font-size: 13px; padding: 10px 14px; border-radius: var(--r-md); margin-bottom: 18px; display: none; }
.auth-error.is-visible { display: block; }
.auth-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: var(--green-light); font-size: 13px; padding: 10px 14px; border-radius: var(--r-md); margin-bottom: 18px; display: none; }
.auth-success.is-visible { display: block; }

/* ---- OAuth "Redirecting…" screen ---- */
.redirect-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.redirect-card { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.redirect-marks { display: flex; align-items: center; gap: 20px; }
.redirect-mark { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); animation: redirectPulse 1.6s ease-in-out infinite; }
.redirect-mark.google-mark { animation-delay: 0s; }
.redirect-mark.flowzco-mark { animation-delay: 0.3s; background: var(--purple); border-color: transparent; }
.redirect-mark svg { width: 26px; height: 26px; }
.redirect-mark.flowzco-mark svg { width: 30px; height: 30px; overflow: visible; }
.redirect-dash { width: 22px; height: 2px; border-radius: var(--r-full); background: var(--border-strong); }
@keyframes redirectPulse { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 1; } }
.redirect-text { font-size: 15px; font-weight: 600; color: var(--text-dim); display: flex; align-items: center; gap: 4px; }
.redirect-dots span { animation: redirectDots 1.4s ease-in-out infinite; opacity: 0.2; }
.redirect-dots span:nth-child(2) { animation-delay: 0.2s; }
.redirect-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes redirectDots { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* ---------------------------------------------------------------------- */
/* Flowspace — chat with your own AI assistant                            */
/* ---------------------------------------------------------------------- */
.fs-shell { display: flex; height: calc(100vh - var(--nav-h)); }

.fs-sidebar {
  width: 280px; flex: 0 0 280px; border-right: 1px solid var(--border); background: var(--bg-elevated);
  padding: 18px 14px; display: flex; flex-direction: column;
  transition: width 0.3s var(--ease), flex-basis 0.3s var(--ease), padding 0.3s var(--ease);
}
.fs-sidebar-top { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.fs-new-chat-btn {
  flex: 1; display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 10px 14px; border-radius: var(--r-md); background: var(--surface);
  border: 1px solid var(--border-strong); color: var(--text); font-size: 13.5px; font-weight: 600;
  transition: all 0.25s var(--ease);
}
.fs-new-chat-btn:hover { background: var(--surface-hover); }
.fs-new-chat-btn svg { width: 16px; height: 16px; flex: none; }

.fs-history-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dimmer); padding: 0 8px; margin-bottom: 10px; }
.fs-history-empty { padding: 18px 12px; font-size: 13px; color: var(--text-dimmer); text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--r-md); line-height: 1.5; }

.fs-history-list { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.fs-history-item { display: flex; align-items: center; gap: 6px; padding: 10px 10px; border-radius: var(--r-md); cursor: pointer; color: var(--text-dim); font-size: 13.5px; transition: background 0.2s var(--ease); }
.fs-history-item:hover { background: var(--surface); }
.fs-history-item.active { background: var(--surface-hover); color: var(--text); }
.fs-history-item .fh-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-history-item .fh-delete { flex: none; width: 24px; height: 24px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: var(--text-dimmer); opacity: 0; transition: all 0.2s var(--ease); }
.fs-history-item:hover .fh-delete { opacity: 1; }
.fs-history-item .fh-delete:hover { background: rgba(255,255,255,0.12); color: #fff; }
.fs-history-item .fh-delete svg { width: 14px; height: 14px; }

.fs-sidebar.collapsed { width: 76px; flex: 0 0 76px; padding: 18px 10px; }
.fs-sidebar.collapsed .fs-new-chat-btn span,
.fs-sidebar.collapsed .fs-history-label,
.fs-sidebar.collapsed .fs-history-list,
.fs-sidebar.collapsed .fs-history-empty { display: none; }
.fs-sidebar.collapsed .fs-sidebar-top { flex-direction: column; }

.fs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fs-messages { flex: 1; overflow-y: auto; padding: 36px 24px 10px; display: flex; flex-direction: column; gap: 24px; }

.fs-welcome { margin: auto; text-align: center; max-width: 560px; padding: 20px; }
.fs-welcome .fs-welcome-mark { width: 68px; height: 68px; margin: 0 auto 20px; filter: drop-shadow(0 8px 18px rgba(6,9,18,0.4)); position: relative; }
.fs-welcome .fs-welcome-mark .ghost-body { fill: var(--purple); }
.fs-welcome .fs-welcome-mark .ghost-eyes circle { fill: var(--green-light); }
.fs-welcome .fs-welcome-mark .fs-bubble rect,
.fs-welcome .fs-welcome-mark .fs-bubble path { fill: var(--green); }
.fs-welcome .fs-welcome-mark .fs-bubble-dot { fill: #ffffff; }
.fs-welcome h1 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 10px; }
.fs-welcome p { font-size: 15px; margin-bottom: 26px; }
.fs-suggestions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fs-suggestion-chip { padding: 10px 16px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; color: var(--text-dim); transition: all 0.25s var(--ease); }
.fs-suggestion-chip:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-hover); }

.fs-msg { display: flex; gap: 14px; max-width: 760px; margin: 0 auto; width: 100%; }
.fs-msg.user { flex-direction: row-reverse; }
.fs-avatar { width: 30px; height: 30px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); overflow: visible; }
.fs-msg.user .fs-avatar { background: rgba(255,255,255,0.08); color: var(--text-dim); }
.fs-msg.assistant .fs-avatar { background: var(--purple); border-color: transparent; }
.fs-avatar svg { width: 16px; height: 16px; overflow: visible; }
.fs-avatar .ghost-body { fill: #ffffff; }
.fs-avatar .ghost-eyes circle { fill: var(--green-light); }
.fs-bubble { padding: 13px 17px; border-radius: 18px; font-size: 14.5px; line-height: 1.65; max-width: calc(100% - 44px); }
.fs-msg.user .fs-bubble { background: var(--brand-solid); color: #ffffff; border-bottom-right-radius: 4px; }
.fs-msg.assistant .fs-bubble { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }

.fs-typing { display: flex; gap: 4px; align-items: center; padding: 4px 2px; }
.fs-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dimmer); animation: fsTyping 1.1s ease-in-out infinite; }
.fs-typing span:nth-child(2) { animation-delay: 0.15s; }
.fs-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fsTyping { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.fs-composer-wrap { padding: 14px 24px 22px; }
.fs-attachment-row { display: flex; justify-content: center; margin-bottom: 8px; }
.fs-attachment-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-dim); }
.fs-attachment-chip svg.fa-file-icon { width: 14px; height: 14px; flex: none; color: var(--text-dimmer); }
.fs-attachment-chip .fa-remove { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-dimmer); flex: none; }
.fs-attachment-chip .fa-remove:hover { background: rgba(255,255,255,0.1); color: #fff; }
.fs-attachment-chip .fa-remove svg { width: 11px; height: 11px; }

.fs-composer { max-width: 760px; margin: 0 auto; display: flex; align-items: flex-end; gap: 6px; padding: 8px 8px 8px 10px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border-strong); backdrop-filter: blur(14px); }
.fs-attach-btn { width: 34px; height: 34px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: var(--text-dimmer); transition: all 0.25s var(--ease); }
.fs-attach-btn:hover { color: var(--text); background: var(--surface-hover); }
.fs-attach-btn svg { width: 18px; height: 18px; }
.fs-composer textarea { flex: 1; background: none; border: none; outline: none; resize: none; color: var(--text); font-family: inherit; font-size: 14.5px; line-height: 1.5; max-height: 160px; padding: 8px 0; }
.fs-composer textarea::placeholder { color: var(--text-dimmer); }
.fs-send-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-solid); color: #ffffff; display: flex; align-items: center; justify-content: center; flex: none; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.fs-send-btn:hover { transform: scale(1.06); }
.fs-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.fs-send-btn svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .fs-sidebar { display: none; }
}

@media (max-width: 900px) {
  .wf-shell { flex-direction: column; }
  .wf-sidebar {
    width: 100%; flex: none; border-radius: 0;
    border: none; border-bottom: 1px solid var(--border); box-shadow: none;
    padding: 12px 20px;
  }
  .wf-sidebar-inner { position: static; max-height: none; overflow: visible; display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; }
  .wf-sidebar-head { display: none; }
  .wf-sidebar-item { flex: none; margin-bottom: 0; }
  .wf-content { width: 100%; }
}

/* ---------- Collapsible sidebar rail (Workforce + Flowspace) ---------- */
.sidebar-collapse-btn {
  width: 30px; height: 30px; border-radius: var(--r-sm); flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dimmer); border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}
.sidebar-collapse-btn:hover { color: var(--text); background: var(--surface); border-color: var(--border); }
.sidebar-collapse-btn svg { width: 17px; height: 17px; }

.wf-sidebar.collapsed { width: 76px; flex: 0 0 76px; padding: 18px 10px; }
.wf-sidebar.collapsed .wf-sidebar-head { justify-content: center; }
.wf-sidebar.collapsed .wf-sidebar-title { display: none; }
.wf-sidebar.collapsed .wf-sidebar-item { justify-content: center; padding: 11px 0; }
.wf-sidebar.collapsed .wf-sidebar-item span { display: none; }
