/* --- Barefoot CMP – Shared Landing Page Styles | Included by all landing pages via <link rel="stylesheet"> --- */

/* SELF-HOSTED INTER FONT (DSGVO-compliant, no Google Fonts) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/landing/fonts/inter-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/landing/fonts/inter-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/landing/fonts/inter-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/landing/fonts/inter-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/landing/fonts/inter-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* VARIABLES */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #10b981;
  --accent-dark: #059669;
  --dark: #0f172a;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --max-width: 1200px;
}

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

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(37,99,235,0.5);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* MOBILE CTA (inside nav-links, visible only on mobile) */
.nav-links-cta { display: none; }

/* MOBILE TOGGLE */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 6px 0;
  transition: 0.3s;
}

/* CODE BLOCKS */
.code-block {
  background: #1e293b;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 16px 0;
  overflow-x: auto;
  position: relative;
}
.code-block code {
  color: #e2e8f0;
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre;
}
.code-label {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
}

/* SYNTAX HIGHLIGHTING */
.tag { color: #7dd3fc; }
.attr { color: #fbbf24; }
.val { color: #86efac; }
.comment { color: #64748b; }

/* INFO/WARNING/SUCCESS BOXES */
.info-box {
  background: #f0f9ff;
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 8px;
  margin: 24px 0;
}
.info-box p { margin-bottom: 8px; font-weight: 500; }
.info-box p:last-child { margin-bottom: 0; }

.warning-box {
  background: #fefce8;
  border-left: 4px solid #f59e0b;
  padding: 20px;
  border-radius: 8px;
  margin: 24px 0;
}
.warning-box p { margin-bottom: 8px; font-weight: 500; color: #92400e; }
.warning-box p:last-child { margin-bottom: 0; }

.success-box {
  background: #ecfdf5;
  border-left: 4px solid var(--accent);
  padding: 20px;
  border-radius: 8px;
  margin: 24px 0;
}
.success-box p { margin-bottom: 8px; font-weight: 500; color: #065f46; }
.success-box p:last-child { margin-bottom: 0; }

/* CONTENT PAGES (guide, legal, docs) */
.content {
  padding-top: 120px;
  padding-bottom: 80px;
}
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.2;
}
.page-meta {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  padding: 48px;
  border-radius: 12px;
  text-align: center;
  margin: 60px 0 48px;
}
.cta-section h2 { color: #fff; margin-top: 0; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.cta-section .btn { display: inline-flex; }

/* FOOTER OVERRIDES */
.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer ul a {
  font-size: 0.9rem;
  color: var(--gray-500);
  transition: color 0.2s;
}

/* LEGAL PAGE STYLES */
.legal-section { margin-bottom: 40px; }
.legal-section h2 { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; margin-top: 32px; }
.legal-section h3 { font-size: 1.1rem; font-weight: 600; color: var(--gray-700); margin-bottom: 12px; margin-top: 20px; }
.legal-section p { color: var(--gray-600); line-height: 1.8; margin-bottom: 12px; }
.legal-section ul { list-style: disc; padding-left: 24px; margin-bottom: 12px; }
.legal-section li { color: var(--gray-600); line-height: 1.8; margin-bottom: 8px; }
.highlight-box { background: var(--gray-50); border-left: 4px solid var(--primary); padding: 20px; border-radius: 8px; margin: 20px 0; }
.highlight-box p { margin-bottom: 0; font-weight: 500; }

/* SHARED RESPONSIVE */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }
  .nav-links.show a {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1rem;
  }
  .nav-links.show a:last-child {
    border-bottom: none;
  }
  .nav-links.show .nav-links-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--gray-200);
  }
  .nav-links.show .nav-links-cta a {
    justify-content: center;
    width: 100%;
    padding: 12px 0;
    border-bottom: none;
  }
  .page-title { font-size: 1.8rem; }
  .cta-section { padding: 32px 20px; }
}
