/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1a1a1a; background: #f5f5f5; min-height: 100vh; }
body.landing-body { background: #fff; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-size: 1rem; font-weight: 600; cursor: pointer; border: none; transition: opacity 0.15s; text-align: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: #2563eb; color: white; }
.btn-primary:hover:not(:disabled) { background: #1d4ed8; text-decoration: none; }
.btn-secondary { background: white; color: #374151; border: 1px solid #d1d5db; }
.btn-secondary:hover:not(:disabled) { background: #f9fafb; text-decoration: none; }
.btn-full { width: 100%; display: block; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.875rem; }

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: 0.5rem; margin-bottom: 1rem; font-size: 0.95rem; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-warning { background: #fef9c3; color: #713f12; border: 1px solid #fde047; border-radius: 0.5rem; }

/* Form fields */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.35rem; }
.field input { width: 100%; padding: 0.65rem 0.75rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 1rem; outline: none; transition: border-color 0.15s; }
.field input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }

/* Landing */
.landing { max-width: 900px; margin: 0 auto; padding: 1rem; }
.landing header { padding: 1.5rem 0; }
.logo { font-size: 1.25rem; font-weight: 700; color: #1a1a1a; }
.landing main { text-align: center; padding: 3rem 0 2rem; }
.landing h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.subtitle { font-size: 1.1rem; color: #4b5563; max-width: 520px; margin: 0 auto 2rem; }
.cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; text-align: left; }
.feature { background: white; padding: 1.5rem; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.feature .icon { font-size: 1.75rem; }
.feature strong { display: block; margin: 0.5rem 0 0.25rem; }
.feature p { font-size: 0.9rem; color: #6b7280; }
.pricing { margin-top: 1rem; }
.price-card { background: white; border: 2px solid #2563eb; border-radius: 1rem; padding: 2rem; display: inline-block; min-width: 260px; box-shadow: 0 4px 6px rgba(37,99,235,0.1); }
.price-card h2 { font-size: 2.5rem; color: #2563eb; margin-bottom: 0.5rem; }
.price-card p { color: #4b5563; margin-bottom: 1.5rem; }

/* Auth */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-card { background: white; border-radius: 1rem; padding: 2rem; width: 100%; max-width: 400px; box-shadow: 0 4px 6px rgba(0,0,0,0.07); }
.auth-card .logo { display: block; margin-bottom: 1.5rem; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.auth-alt { margin-top: 1.5rem; text-align: center; font-size: 0.9rem; color: #6b7280; }
.success-msg { text-align: center; padding: 1.5rem; color: #065f46; }

/* Dashboard */
.navbar { background: white; border-bottom: 1px solid #e5e7eb; padding: 0.75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-biz { font-size: 0.9rem; color: #4b5563; }
.dashboard-main { max-width: 800px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 600px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: white; border-radius: 0.75rem; padding: 1.25rem; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.07); }
.stat-num { font-size: 2rem; font-weight: 700; color: #2563eb; }
.stat-label { font-size: 0.78rem; color: #6b7280; margin-top: 0.25rem; }
.card { background: white; border-radius: 0.75rem; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.07); }
.card h2 { font-size: 1.1rem; margin-bottom: 1.25rem; }
.customer-list { display: flex; flex-direction: column; gap: 0.5rem; }
.customer-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem; background: #f9fafb; border-radius: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.phone { display: block; font-size: 0.85rem; color: #6b7280; margin-top: 0.1rem; }
.customer-meta { display: flex; gap: 0.75rem; align-items: center; }
.badge { background: #dbeafe; color: #1e40af; font-size: 0.78rem; padding: 0.2rem 0.5rem; border-radius: 999px; }
.date { font-size: 0.8rem; color: #9ca3af; }
.loading { text-align: center; padding: 2rem; color: #6b7280; }

/* ─── Landing Page (redesign) ─────────────────────────────────── */

/* Colors */
:root {
  --navy: #1e3a5f;
  --navy-light: #2c4f7c;
  --green: #16a34a;
  --green-light: #dcfce7;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg-alt: #f8fafc;
}

/* Layout */
.lp-container { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }
.lp-section { padding: 5rem 0; }
.lp-alt { background: var(--bg-alt); }

/* Header / Nav */
.lp-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.lp-nav { display: flex; align-items: center; justify-content: space-between; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.lp-logo { font-size: 1.2rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.lp-logo:hover { text-decoration: none; }
.lp-nav-links { display: flex; align-items: center; gap: 1.25rem; }
.lp-nav-link { font-size: 0.95rem; color: var(--text); }
.lp-nav-link:hover { color: var(--navy); }

/* Hero */
.lp-hero { background: #fff; padding: 4.5rem 0 4rem; }
.lp-hero-inner { text-align: center; }
.lp-badge { display: inline-block; background: var(--green-light); color: var(--green); font-size: 0.82rem; font-weight: 600; padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 1.5rem; }
.lp-h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--navy); line-height: 1.15; margin-bottom: 1.25rem; }
.lp-subtitle { font-size: 1.1rem; color: var(--muted); max-width: 540px; margin: 0 auto 2rem; line-height: 1.65; }
.lp-cta-group { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin-bottom: 2.5rem; }
.lp-btn-hero { font-size: 1.05rem; padding: 0.85rem 2rem; background: var(--navy); }
.lp-btn-hero:hover:not(:disabled) { background: var(--navy-light); }
.lp-cta-note { font-size: 0.82rem; color: var(--muted); }
.lp-social-bar { font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 1.5rem; }

/* Section headings */
.lp-section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--navy); text-align: center; margin-bottom: 0.6rem; }
.lp-section-sub { text-align: center; color: var(--muted); margin-bottom: 3rem; font-size: 1rem; }

/* Steps */
.lp-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; flex-wrap: wrap; }
.lp-step { background: #fff; border: 1px solid var(--border); border-radius: 0.875rem; padding: 1.75rem 1.5rem; flex: 1 1 220px; max-width: 280px; text-align: center; }
.lp-step-num { font-size: 0.75rem; font-weight: 700; color: var(--green); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.lp-step-icon { font-size: 2.25rem; margin-bottom: 0.85rem; }
.lp-step h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.lp-step p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.lp-step-arrow { font-size: 1.5rem; color: var(--border); align-self: center; padding: 0 0.5rem; flex-shrink: 0; }
@media (max-width: 640px) {
  .lp-step-arrow { display: none; }
  .lp-steps { gap: 1rem; }
  .lp-step { max-width: 100%; }
}

/* Testimonials */
.lp-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.lp-testimonial { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 0.875rem; padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.lp-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 0.05em; }
.lp-testimonial-text { font-size: 0.95rem; color: var(--text); line-height: 1.65; font-style: italic; flex: 1; }
.lp-testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.lp-avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lp-testimonial-author strong { display: block; font-size: 0.9rem; color: var(--navy); }
.lp-testimonial-author span { font-size: 0.8rem; color: var(--muted); }

/* Pricing */
.lp-pricing-center { display: flex; justify-content: center; }
.lp-price-card { background: #fff; border: 2px solid var(--navy); border-radius: 1rem; padding: 2.5rem 2rem; max-width: 420px; width: 100%; position: relative; box-shadow: 0 8px 32px rgba(30,58,95,0.1); }
.lp-price-badge { position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 1rem; border-radius: 999px; white-space: nowrap; }
.lp-price-amount { font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 0.35rem; }
.lp-price-amount span { font-size: 1.1rem; font-weight: 500; color: var(--muted); }
.lp-price-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.75rem; }
.lp-price-features { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.lp-price-features li { font-size: 0.93rem; color: var(--text); }
.lp-price-cta { background: var(--navy); font-size: 1rem; padding: 0.9rem; }
.lp-price-cta:hover:not(:disabled) { background: var(--navy-light); }
.lp-price-note { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 0.85rem; }

/* CTA banner */
.lp-cta-section { background: var(--navy); }
.lp-cta-inner { text-align: center; }
.lp-cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.lp-cta-inner p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1rem; }
.btn-white { background: #fff; color: var(--navy); font-weight: 700; }
.btn-white:hover { background: #f1f5f9; text-decoration: none; }

/* Footer */
.lp-footer { background: #fff; border-top: 1px solid var(--border); padding: 1.5rem 0; }
.lp-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.lp-footer-inner a { color: var(--muted); }
.lp-footer-inner a:hover { color: var(--navy); }

/* Override old landing styles on new landing page */
body.landing-body .landing { display: none; }
