@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif&display=swap');

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

:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --border: #e2e5ea;
  --text: #374151;
  --heading: #111827;
  --muted: #6b7280;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-light: #0d9488;
  --mint: #059669;
  --warning: #d97706;
  --error: #dc2626;
  --info: #2563eb;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-light);
  text-decoration: none;
}

a:hover {
  color: var(--teal);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.6rem;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.nav .logo {
  font-size: 2rem;
}

.logo .dot {
  color: var(--teal-light);
}

a.logo:hover {
  color: var(--heading);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.lang-switch {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted) !important;
  transition: all 0.2s;
}

.lang-switch:hover {
  border-color: var(--teal-light);
  color: var(--teal-light) !important;
}

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

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

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--teal-light);
  color: var(--white);
}

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

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

.btn-secondary:hover {
  border-color: var(--teal-light);
  color: var(--teal-light);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.82rem;
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Hero --- */

.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--teal-light);
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

/* --- Section --- */

.section {
  padding: 100px 0;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-light);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--heading);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc {
  margin: 0 auto;
}

.section-alt {
  background: var(--surface);
}

/* --- How it works --- */

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

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal-light);
  margin-bottom: 20px;
}

.step-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

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

/* --- Features --- */

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
  border-color: var(--teal-light);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(13, 148, 136, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--teal-light);
  font-size: 1.2rem;
}

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

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

/* --- Industries --- */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.industry-card:hover {
  border-color: var(--teal-light);
}

.industry-icon {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
}

.industry-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}

.industry-card p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Pricing --- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pricing-card.featured {
  border-color: var(--teal-light);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-light);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.pricing-price {
  font-family: 'Instrument Serif', serif;
  font-size: 2.4rem;
  color: var(--heading);
  margin-bottom: 4px;
}

.pricing-price .currency {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing-period {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 28px;
}

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

.pricing-features li {
  font-size: 0.88rem;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-light);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* --- FAQ --- */

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

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

.faq-item summary {
  padding: 20px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}

.faq-item summary:hover {
  color: var(--teal-light);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--teal-light);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 0 20px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--teal-light);
}

/* --- Legal pages --- */

.legal-page {
  padding: 140px 0 80px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 48px;
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: none;
  margin-bottom: 16px;
  padding-left: 0;
}

.legal-content ul li {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.legal-content ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-light);
  position: absolute;
  left: 0;
  top: 11px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.88rem;
}

.legal-content th,
.legal-content td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.legal-content th {
  font-weight: 600;
  color: var(--heading);
  background: var(--surface-2);
}

.legal-content td {
  color: var(--text);
}

.legal-content a {
  color: var(--teal-light);
}

.legal-content a:hover {
  color: var(--teal);
}

/* --- Footer --- */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--heading);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
}

/* --- Responsive --- */

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

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

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

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

  .section {
    padding: 64px 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* --- Consent bar --- */

.consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.consent-bar-visible {
  transform: translateY(0);
}

.consent-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.consent-bar-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
}

.consent-bar-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.consent-btn-settings {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.consent-btn-settings:hover {
  border-color: var(--teal-light);
  color: var(--teal-light);
}

.consent-btn-reject {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.consent-btn-reject:hover {
  border-color: var(--teal-light);
  color: var(--teal-light);
}

.consent-btn-accept {
  white-space: nowrap;
}

/* --- Consent modal --- */

.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.consent-overlay-visible {
  background: rgba(0, 0, 0, 0.4);
}

.consent-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 1002;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.consent-modal-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.consent-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.consent-modal-header h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
}

.consent-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.consent-modal-close:hover {
  color: var(--heading);
}

.consent-modal-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.consent-categories {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.consent-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.consent-category-info {
  flex: 1;
}

.consent-category-info h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 2px;
}

.consent-category-info p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.consent-always-on {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-light);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(13, 148, 136, 0.1);
}

/* Toggle switch */

.consent-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.consent-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.consent-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: background 0.2s;
}

.consent-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.consent-toggle input:checked + .consent-toggle-track {
  background: var(--teal-light);
}

.consent-toggle input:checked + .consent-toggle-track::after {
  transform: translateX(20px);
}

.consent-toggle input:focus-visible + .consent-toggle-track {
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}

.consent-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .consent-bar-inner {
    flex-direction: column;
    text-align: center;
  }

  .consent-bar-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .consent-modal {
    padding: 24px;
    width: 95%;
  }
}
