/* ============================================
   Public Site Styles
   ============================================ */

/* Public navbar */
.public-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.public-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(37,211,102,.35);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 4px;
  position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--brand-secondary); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background: var(--gradient-hero), var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.1;
}
.hero .lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: var(--space-6);
}
.hero-cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.hero-meta-item {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-meta-item::before {
  content: '✓';
  color: var(--brand-primary);
  font-weight: 700;
}

/* Hero illustration */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}
.phone-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 16px;
  width: 320px;
  box-shadow: var(--shadow-xl);
  transform: rotate(-2deg);
  position: relative;
}
.phone-mock::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 60px;
  height: 6px;
  background: var(--border-strong);
  border-radius: 4px;
  transform: translateX(-50%);
}
.phone-screen {
  background: var(--gradient-brand);
  border-radius: 18px;
  padding: 18px;
  color: #fff;
  min-height: 460px;
  position: relative;
  overflow: hidden;
}
.chat-bubble {
  background: rgba(255,255,255,.95);
  color: #0f1726;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 10px;
  max-width: 75%;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  animation: slideUp .6s var(--ease) both;
}
.chat-bubble.me {
  background: #DCF8C6;
  color: #0f1726;
  margin-left: auto;
}
.chat-bubble:nth-child(1) { animation-delay: .1s; }
.chat-bubble:nth-child(2) { animation-delay: .3s; }
.chat-bubble:nth-child(3) { animation-delay: .5s; }
.chat-bubble:nth-child(4) { animation-delay: .7s; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.floating-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 4s ease-in-out infinite;
}
.floating-card.fc-top { top: 24px; right: -10px; }
.floating-card.fc-bottom { bottom: 28px; left: -16px; animation-delay: 1.6s; }
.floating-card .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(37,211,102,.18);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Sections */
section { padding: 80px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-10);
}
.section-head .eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--brand-secondary);
  margin-bottom: var(--space-3);
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37,211,102,.12);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: var(--space-4);
}
.feature h3 { font-size: 1.05rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  max-width: 1100px;
  margin: 0 auto;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.plan.featured {
  border: 2px solid var(--brand-primary);
  box-shadow: 0 16px 40px rgba(37,211,102,.18);
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.plan h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.plan .price {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin: var(--space-3) 0;
}
.plan .price .period { font-size: 1rem; color: var(--text-tertiary); font-weight: 500; }
.plan ul {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0;
  text-align: left;
}
.plan ul li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan ul li::before { content: '✓'; color: var(--brand-primary); font-weight: 700; }

/* Footer */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: var(--space-12) 0 var(--space-6);
  margin-top: var(--space-12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 4px 0; }
.footer ul a { color: var(--text-secondary); font-size: 14px; }
.footer ul a:hover { color: var(--brand-primary); }
.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--gradient-hero), var(--bg);
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
}
.auth-card .brand-logo {
  justify-content: center;
  margin-bottom: var(--space-6);
}
.auth-card h2 {
  text-align: center;
  margin-bottom: var(--space-2);
  font-size: 1.6rem;
}
.auth-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}
.auth-divider {
  text-align: center;
  margin: var(--space-6) 0 var(--space-4);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Theme toggle button */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: all var(--dur-fast) var(--ease);
  color: var(--text-secondary);
}
.theme-toggle:hover {
  border-color: var(--brand-primary);
  color: var(--brand-secondary);
}

/* Responsive */
@media (max-width: 880px) {
  .hero { padding: 60px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-visual { order: -1; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
@media (max-width: 520px) {
  .auth-card { padding: var(--space-6) var(--space-4); }
  .footer-grid { grid-template-columns: 1fr; }
}
