/* Kaelint CRM Landing Page — matches kaelint.ch design */
:root {
  --primary: #2563EB;
  --primary-hover: #1d4ed8;
  --secondary: #1E293B;
  --accent: #F59E0B;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-light: #f1f5f9;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1);
  --font: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
}

.header__logo span {
  color: var(--primary);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

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

.lang-toggle {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: none;
  cursor: pointer;
  color: var(--text-secondary);
  transition: border-color 0.15s;
}

.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

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

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

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

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

.btn--secondary:hover { background: rgba(37,99,235,0.05); }

.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

/* --- Hero --- */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero__inner { max-width: 700px; }

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--secondary);
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- Features --- */
.features {
  padding: 5rem 0;
  background: var(--bg);
}

.features h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--secondary);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.feature-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Pricing --- */
.pricing {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.pricing h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.pricing__sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
}

.price-card--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.price-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.price-card__price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.price-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.price-card li {
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.price-card li::before {
  content: '✓ ';
  color: var(--primary);
  font-weight: 700;
}

.price-card .btn { width: 100%; justify-content: center; }

/* --- Compare --- */
.compare {
  padding: 5rem 0;
  background: var(--bg);
}

.compare h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.table-wrap { overflow-x: auto; }

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

.compare-table th, .compare-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  font-weight: 600;
  background: var(--bg-alt);
}

.compare-table th:first-child, .compare-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.compare-table th:nth-child(2) {
  color: var(--primary);
}

/* --- FAQ --- */
.faq {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.faq h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq__list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 1.1rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- CTA --- */
.cta-section {
  padding: 5rem 0;
  background: var(--bg-dark);
  color: var(--text-light);
}

.cta-section__inner {
  text-align: center;
  max-width: 600px;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #94a3b8;
  margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer a { color: var(--primary); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* --- Responsive --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .header__nav.open {
    display: flex;
  }

  .header__nav a {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .hero h1 { font-size: 2rem; }
  .hero { padding: 4rem 0 3rem; }
  .features, .pricing, .compare, .faq, .cta-section { padding: 3.5rem 0; }
  .pricing__grid { grid-template-columns: 1fr; }
}
