/* ============================================================
   Civora Public Website — Design System
   Colors mirror src/theme/colors.ts from the mobile app
   ============================================================ */

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

:root {
  --primary:           #1D4ED8;
  --primary-dark:      #1E3A8A;
  --primary-light:     #DBEAFE;
  --secondary:         #7C3AED;
  --secondary-dark:    #5B21B6;
  --secondary-light:   #EDE9FE;
  --accent:            #C2410C;
  --success:           #0F766E;
  --error:             #DC2626;
  --amber:             #F59E0B;

  --text-primary:      #111827;
  --text-secondary:    #4B5563;
  --text-tertiary:     #9CA3AF;
  --text-muted:        #D1D5DB;

  --background:        #FDFDFD;
  --surface:           #FFFFFF;
  --border:            #E5E7EB;
  --border-primary:    rgba(29, 78, 216, 0.25);
  --border-subtle:     rgba(29, 78, 216, 0.08);

  --sidebar-width:     260px;
  --topbar-height:     64px;
  --radius-sm:         8px;
  --radius-md:         12px;
  --radius-lg:         20px;
  --radius-xl:         28px;
  --shadow-sm:         0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:         0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:         0 8px 32px rgba(29,78,216,0.15);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ─────────────────────────────────────────────── */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--primary-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.sidebar-brand-text h1 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.sidebar-brand-text p {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 12px 8px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: var(--border-subtle);
  color: var(--primary);
}

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  border-left: 3px solid var(--primary);
  padding-left: 9px;
}

.nav-item .nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Main Content ─────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Mobile Topbar ─────────────────────────────────────────── */
.topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 99;
  height: var(--topbar-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.hamburger {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1;
}

/* ── Page Content Wrapper ─────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 48px 48px 64px;
  max-width: 1100px;
  width: 100%;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* ── CTA Buttons ─────────────────────────────────────────── */
.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: none;
  line-height: 1;
}

.btn:active { transform: scale(0.97); }

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-white:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.2); }

.btn-outline-white {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.2); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { background: var(--primary-dark); }

/* ── Section Headers ─────────────────────────────────────── */
.section {
  margin-bottom: 48px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 32px;
}

/* ── Feature Grid ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--border-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  display: flex;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-top: 4px;
}

/* ── About / Team Cards ───────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.team-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  border: 1.5px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.email-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--border-subtle);
  border: 1px solid var(--border-primary);
  color: var(--primary);
  font-size: 15px;
  transition: background 0.15s;
  text-decoration: none;
}

.email-btn:hover {
  background: var(--primary-light);
}

.role-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

.team-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

/* ── Vision Bullets ─────────────────────────────────────── */
.vision-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.vision-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.vision-list .icon {
  font-size: 18px;
  width: 28px;
  flex-shrink: 0;
}

/* ── Contact Cards ─────────────────────────────────────── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 16px;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact-info { flex: 1; }

.contact-info .name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-info .title {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 2px 0 10px;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s;
}

.contact-email-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ── Legal / Document ─────────────────────────────────────── */
.legal-document .doc-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-xl);
  padding: 40px 40px 36px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.legal-document .doc-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.legal-document .doc-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.legal-document .doc-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.legal-document .doc-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal-document .doc-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 10px;
}

.legal-document .doc-body h2:first-child { margin-top: 0; }

.legal-document .doc-body p { margin-bottom: 14px; }

.legal-document .doc-body ul {
  margin: 8px 0 14px 24px;
}

.legal-document .doc-body ul li { margin-bottom: 6px; }

.legal-document .doc-body a {
  color: var(--primary);
  font-weight: 600;
}

/* ── Overlay (mobile) ─────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
  backdrop-filter: blur(2px);
}

/* ── Info Card (shared) ────────────────────────────────────── */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

/* ── Response time note ─────────────────────────────────── */
.note-box {
  background: var(--primary-light);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--primary-dark);
  font-weight: 500;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Footer (page-level) ─────────────────────────────────── */
.page-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 24px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .topbar { display: flex; }

  .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-width)));
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .sidebar-overlay.open { display: block; }

  .main-content { margin-left: 0; }

  .page-content { padding: 24px 20px 48px; }

  .hero { padding: 36px 24px; }

  .stats-bar { padding: 24px 20px; }

  .features-grid { grid-template-columns: 1fr 1fr; }

  .legal-document .doc-body { padding: 24px 20px; }
  .legal-document .doc-header { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
/* ── Pricing Section ─────────────────────────────────────── */
.pricing-section {
  padding: 64px 0;
}

.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.pricing-toggle {
  display: inline-flex;
  background: var(--border-subtle);
  padding: 4px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.pricing-toggle-btn {
  padding: 8px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: transparent;
  color: var(--text-secondary);
}

.pricing-toggle-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
  justify-content: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}


.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  max-width: 340px;
}

.pricing-card.trial-plan {
  border: 2px dashed var(--amber);
  background: rgba(245, 158, 11, 0.03);
}

.trial-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--amber);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 1px;
}


.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.pricing-card.popular::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 1px;
}

.pricing-card-header {
  margin-bottom: 24px;
}

.pricing-card-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.price-amount {
  font-size: 44px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.price-duration {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}

.pricing-features li i {
  color: var(--success);
  font-size: 16px;
}

.pricing-btn {
  width: 100%;
  justify-content: center;
  font-weight: 700;
}

/* ── Overlays and Mobile Adjustments ───────────────────── */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}
