/* ============================================
   Kareshift — Landing Page Styles
   Light, warm, approachable design
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #6366f1;
  --primary-dark: #4f46e5;
  --primary-light:#eef2ff;
  --dark:         #0f172a;
  --text:         #334155;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --bg:           #ffffff;
  --bg-alt:       #f8fafc;
  --bg-card:      #ffffff;
  --border:       #e2e8f0;
  --green:        #10b981;
  --amber:        #f59e0b;
  --shadow:       0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg:    0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --r:            12px;
  --r-lg:         16px;
  --ease:         0.25s ease;
  --max-w:        1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.938rem;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--ease);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--ease);
}

/* ── Hero ── */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.063rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.813rem;
  color: var(--text-light);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-screenshot {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-mockup {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
}

/* ── Trust Badges ── */
.trust-badges {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.badge svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ── Sections ── */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.063rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Grid ── */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  transition: all var(--ease);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.063rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.card p {
  font-size: 0.938rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Why Section ── */
.why {
  background: var(--bg-alt);
}

.why .section-title {
  margin-bottom: 48px;
}

/* ── Features Section ── */
.features {
  background: var(--bg);
}

/* ── How It Works ── */
.how-it-works {
  background: var(--bg-alt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.step {
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Testimonials ── */
.testimonials {
  background: var(--bg);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--ease);
}

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

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.938rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.938rem;
}

.testimonial-author strong {
  display: block;
  font-size: 0.875rem;
  color: var(--dark);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Comparison Table ── */
.compare {
  background: var(--bg-alt);
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  font-weight: 600;
  color: var(--dark);
  background: var(--bg-alt);
  font-size: 0.813rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compare-table td {
  color: var(--text-muted);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-highlight {
  background: rgba(99,102,241,0.04) !important;
  color: var(--dark) !important;
  font-weight: 500;
}

.compare-table th.compare-highlight {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
}

/* ── Pricing ── */
.pricing {
  background: var(--bg);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pricing-popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 40px;
  transform: rotate(45deg);
}

.pricing-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.price-annual {
  font-size: 0.813rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 4px;
}

.price-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.pricing-features {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--text);
  border-bottom: 1px solid var(--bg-alt);
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--primary-light);
  border-radius: 50%;
}

.pricing-features li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 4px;
  height: 8px;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

/* ── Pricing Savings ── */
.pricing-savings {
  margin-top: 48px;
  padding: 32px;
  background: var(--bg-alt);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.savings-headline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 20px;
  text-align: center;
}

.savings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.savings-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.savings-workers {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}

.savings-competitor {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.savings-kareshift {
  font-size: 0.875rem;
  color: var(--primary);
}

.savings-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ── Personas ── */
.personas {
  background: var(--bg-alt);
}

/* ── Roadmap ── */
.roadmap {
  background: var(--bg);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.roadmap-item {
  padding: 24px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--ease);
}

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

.roadmap-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.roadmap-done .roadmap-status {
  color: var(--green);
}

.roadmap-progress .roadmap-status {
  color: var(--amber);
}

.roadmap-planned .roadmap-status {
  color: var(--text-light);
}

.roadmap-done {
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.03);
}

.roadmap-progress {
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.03);
}

.roadmap-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.roadmap-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── FAQ ── */
.faq {
  background: var(--bg-alt);
}

.faq .section-title {
  margin-bottom: 48px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--ease);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
}

.faq-chevron {
  transition: transform var(--ease);
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.938rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── CTA Section ── */
.cta-section {
  padding: 80px 0;
  background: var(--bg);
}

.cta-box {
  text-align: center;
  padding: 64px 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--r-lg);
  color: #fff;
}

.cta-box h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.cta-box p {
  font-size: 1.063rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-box .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta-box .btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ── Footer ── */
.footer {
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--ease);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for grid children */
.grid .reveal:nth-child(1) { transition-delay: 0s; }
.grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.grid .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .trust-badges {
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-mockup {
    max-width: 100%;
  }

  section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-cols {
    flex-wrap: wrap;
    gap: 32px;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .cta-box h2 {
    font-size: 1.5rem;
  }

  .compare-table {
    font-size: 0.8rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.625rem;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: 0.938rem;
  }

  .card {
    padding: 24px;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
  }
}
