/* styles.css - Homepage */

/* Reset and base styles */

@font-face {
    font-family: "ArchivoNarrow";
    src:
        url("fonts/ArchivoNarrow-Regular.woff2") format("woff2"),
        url("fonts/ArchivoNarrow-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "ArchivoNarrow";
    src:
        url("fonts/ArchivoNarrow-SemiBold.woff2") format("woff2"),
        url("fonts/ArchivoNarrow-SemiBold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "ArchivoNarrow";
    src:
        url("fonts/ArchivoNarrow-Bold.woff2") format("woff2"),
        url("fonts/ArchivoNarrow-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "GeneraleStation";
    src:
        url("fonts/GeneraleStation-Regular.woff2") format("woff2"),
        url("fonts/GeneraleStation-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "SuperShape";
    src:
        url("fonts/SuperShape.woff2") format("woff2"),
        url("fonts/SuperShape.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Capriola";
    src:
        url("fonts/Capriola-Regular.woff2") format("woff2"),
        url("fonts/Capriola-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Manrope";
    src:
        url("fonts/Manrope-Regular.woff2") format("woff2"),
        url("fonts/Manrope-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Brand colors - defaults to Veila to prevent flickering */
:root {
  --color-primary-50: #f0f7f5;
  --color-primary-100: #e2f3f1;
  --color-primary-200: #d0ece8;
  --color-primary-300: #bee4df;
  --color-primary-400: #9ad5cd;
  --color-primary-500: #76c6bb;
  --color-primary-600: #52b7a9;
  --color-primary-700: #429e92;
  --color-primary-800: #3b8c82;
  --color-primary-900: #337a71;
  --color-primary-950: #245650;

  /* Semi-transparent primary colors for shadows */
  --color-primary-600-30: rgba(82, 183, 169, 0.3);
  --color-primary-600-40: rgba(82, 183, 169, 0.4);

  --color-secondary-50: #f9f9f9;
  --color-secondary-100: #f2f2f2;
  --color-secondary-200: #dfdfdf;
  --color-secondary-300: #cccccc;
  --color-secondary-400: #b9b9b9;
  --color-secondary-500: #a5a5a5;
  --color-secondary-600: #929292;
  --color-secondary-700: #7f7f7f;
  --color-secondary-800: #6c6c6c;
  --color-secondary-900: #595959;
  --color-secondary-950: #515151;

  --font-logo: 'SuperShape', serif;
  --font-heading: 'Capriola', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

/* General link styles */
a {
  color: var(--color-primary-600);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-700);
  text-decoration: underline;
}

a:visited {
  color: var(--color-primary-600);
}

a:visited:hover {
  color: var(--color-primary-700);
}

/* Documentation sidebar link styles */
.sidebar-link:visited {
  color: var(--color-secondary-700);
}

.sidebar-link:visited:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  border-left-color: var(--color-primary-200);
}

.sidebar-link:visited.active {
  background: var(--color-primary-100);
  color: var(--color-primary-800);
  border-left-color: var(--color-primary-600);
  font-weight: 500;
}

/* Documentation link styles */
.docs-link:visited {
  color: var(--color-secondary-600);
}

.docs-link:visited:hover {
  color: var(--color-secondary-800);
  background: var(--color-secondary-100);
}

/* Fix button text visibility - ensure buttons have proper contrast */
.btn-primary {
  color: #fff !important;
}

.btn-primary:hover {
  color: #fff !important;
}

.btn-primary:visited {
  color: #fff !important;
}

.btn-primary:visited:hover {
  color: #fff !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: #fff;
    color: #111827;
  }
  
  #beta {
    float: left;
    top: 1.5em;
    left: -3em;
    position: fixed; /* or fixed if you want it to always be visible */
    transform: rotate(-45deg);
    background: red;
    color: white;
    font-weight: bold;
    padding-left: 3em;  padding-right: 3em;
    padding-top: .5em;  padding-bottom: .5em;
    border: 0;  margin: 0;
    height: auto;   width: auto;
    z-index: 999999999; /* or whatever is needed to show on top of other elements */
}
#beta::before {
    content: "⚠️ BETA ⚠️";
}

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 0.5em;
    font-weight: 600;
  }
  
  h1 {
    font-size: 3rem;
    font-weight: 700;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  h3 {
    font-size: 1.875rem;
  }
  
  p {
    margin-bottom: 1em;
  }
  
  ul {
    list-style: none;
    padding-left: 0;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* Header */
  header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-family: var(--font-logo);
    font-size: 3.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-primary-600);
    line-height: 0.8;
  }

  .logo:hover {
    color: var(--color-primary-600);
    text-decoration: none;
  }

  .logo:visited {
    color: var(--color-primary-600);
  }

  .logo:visited:hover {
    color: var(--color-primary-600);
    text-decoration: none;
  }
  
  .header-nav a {
    margin-left: 1rem;
    text-decoration: none;
  }
  
  .nav-link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-secondary-600);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
  }
  
  .nav-link:hover {
    color: var(--color-secondary-800);
    background: var(--color-secondary-100);
    text-decoration: none;
  }

  .nav-link:visited {
    color: var(--color-secondary-600);
  }

  .nav-link:visited:hover {
    color: var(--color-secondary-800);
    background: var(--color-secondary-100);
    text-decoration: none;
  }

  /* Mobile menu styles */
  .mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
  }

  .mobile-menu-btn span {
    width: 2rem;
    height: 0.25rem;
    background: var(--color-secondary-700);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
  }

  .mobile-menu-btn.open span:first-child {
    transform: rotate(45deg);
  }

  .mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
  }

  .mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--color-secondary-200);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    z-index: 1000;
  }

  .mobile-nav.open {
    display: block;
  }

  .mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--color-secondary-700);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid var(--color-secondary-100);
    transition: background-color 0.2s ease-in-out;
  }

  .mobile-nav-link:visited {
    color: var(--color-secondary-700);
  }

  .mobile-nav-link:hover {
    background: var(--color-secondary-50);
    color: var(--color-secondary-900);
  }

  .mobile-nav-link:visited:hover {
    background: var(--color-secondary-50);
    color: var(--color-secondary-900);
  }

  .mobile-nav-link:last-child {
    border-bottom: none;
  }

  /* Hide mobile nav by default */
  .desktop-nav {
    display: flex;
  }
  
  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-secondary-300);
    border-radius: 0.75rem;
    background: #fff;
    color: var(--color-secondary-700);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration-line: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn:hover {
    background-color: var(--color-secondary-50);
    border-color: var(--color-secondary-400);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
  }
  
  .btn-primary {
    background-color: var(--color-primary-600);
    color: #fff;
    border-color: var(--color-primary-600);
  }
  
  .btn-primary:hover {
    background-color: var(--color-primary-700);
    border-color: var(--color-primary-700);
  }
  
  .btn-hero {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 1rem;
    box-shadow: 0 10px 25px var(--color-primary-600-30);
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
  }
  
  .btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px var(--color-primary-600-40);
  }
  
  /* Sections */
  .section {
    padding: 6rem 0;
  }
  
  .section.alt {
    background: linear-gradient(135deg, var(--color-secondary-50) 0%, var(--color-primary-50) 100%);
  }
  
  .hero {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-800) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
  }
  
  .hero .container {
    position: relative;
    z-index: 1;
  }
  
  .text-center {
    text-align: center;
  }
  
  .subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 400;
  }
  
  .hero-img-placeholder,
  .diagram-placeholder,
  .board-placeholder {
    margin-top: 2rem;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.125rem;
    font-weight: 500;
  }

  .hero-img {
    margin-top: 2rem;
    text-align: center;
    perspective: 1000px;
  }

  .hero-img img {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    /* Crisp image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Subtle 3D tilt effect */
    /* transform: rotateX(13deg) rotateY(-1deg); */
    /* Subtle depth with clean shadows */
    box-shadow: 
      0 25px 50px rgba(0, 0, 0, 0.12),
      0 12px 24px rgba(0, 0, 0, 0.08);
    /* Very subtle glow */
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.08));
    /* Smooth transitions */
    transition: all 0.3s ease;
  }

  /* .hero-img img:hover {
    /* transform: rotateX(1deg) rotateY(-0.5deg) translateY(-5px); */
    /* box-shadow:  */
      /* 0 35px 70px rgba(0, 0, 0, 0.15), */
      /* 0 18px 36px rgba(0, 0, 0, 0.1); */
    /* filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.12)); */
  /* } */

  
  /* Focus styles for better accessibility */
  .btn:focus,
  a:focus {
    outline: 2px solid var(--color-primary-400);
    outline-offset: 2px;
  }
  
  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }
  
  /* Reduced motion support */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  
  /* Grids */
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
  }
  
  .grid-3 > div {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid var(--color-secondary-100);
  }
  
  .grid-3 > div:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }
  
  .steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
  }
  
  .steps .step {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    font-size: 1.125rem;
    border-left: 4px solid var(--color-primary-600);
  }

  /* Flowchart diagram styling */
  .flowchart-comparison {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
  }

  .flowchart-section {
    width: 800px;
    text-align: center;
  }

  .flowchart-section h3 {
    margin-bottom: 1rem;
    color: var(--color-primary-600);
    font-size: 1.5rem;
  }

  .flowchart-comparison img {
    max-width: 100%;
    height: auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-secondary-200);
    padding: 1.5rem;
  }
  
  /* Pricing Cards */
  .pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
  }
  
  .card {
    border: 1px solid var(--color-secondary-200);
    padding: 2.5rem;
    border-radius: 1.5rem;
    width: 320px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
  }
  
  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }
  
  .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-600), var(--color-primary-400));
  }
  
  .card h3 {
    margin-bottom: 1rem;
    color: var(--color-primary-600);
    font-size: 1.5rem;
  }
  
  .card p {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-secondary-900);
  }
  
  .card ul li {
    margin: 1rem 0;
    position: relative;
    padding-left: 1.5rem;
  }
  
  .card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary-600);
    font-weight: bold;
  }
  
  /* Testimonials */
  .testimonials blockquote {
    background: #f2f2f2;
    padding: 1rem;
    border-left: 4px solid #ccc;
    margin: 1rem auto;
    max-width: 600px;
  }
  
  .testimonials footer {
    margin-top: 0.5rem;
    font-style: italic;
  }
  
  /* FAQ */
  .faq-item {
    margin-bottom: 1rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-secondary-100);
    overflow: hidden;
  }

  .faq-question {
    margin: 0;
    padding: 1.5rem;
    color: var(--color-primary-600);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
    border-bottom: 1px solid var(--color-secondary-100);
  }

  .faq-question:hover {
    background: var(--color-primary-50);
  }

  .faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary-500);
    transition: transform 0.3s ease-in-out;
    min-width: 24px;
    text-align: center;
  }

  .faq-item.active .faq-toggle {
    transform: rotate(45deg);
  }

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

  .faq-item.active .faq-answer {
    max-height: none;
    padding: 1.5rem;
  }

  .faq-answer p {
    color: var(--color-secondary-700);
    line-height: 1.7;
    margin: 0;
  }
  
  /* CTA Section */
  .cta {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-800) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  
  .cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="cta-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="0.3" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="0.3" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-grain)"/></svg>');
    opacity: 0.4;
  }
  
  .cta .container {
    position: relative;
    z-index: 1;
  }
  
  .cta h2 {
    color: #fff;
    margin-bottom: 1rem;
  }
  
  .cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }
  
  /* Footer */
  .footer {
    background: var(--color-secondary-800);
    color: var(--color-secondary-200);
    padding: 3rem 0 2rem;
    font-size: 0.875rem;
    text-align: center;
  }
  
  .footer a {
    color: var(--color-secondary-300);
    text-decoration: none;
    margin: 0 0.75rem;
    transition: color 0.2s ease-in-out;
  }
  
  .footer a:hover {
    color: var(--color-primary-400);
    text-decoration: underline;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .container {
      padding: 0 1.5rem;
    }
    
    .section {
      padding: 4rem 0;
    }
    
    h1 {
      font-size: 2.5rem;
    }
    
    h2 {
      font-size: 2rem;
    }
    
    .subtitle {
      font-size: 1.25rem;
    }
    
    .header-container {
      justify-content: space-between;
      align-items: center;
    }
  
    .desktop-nav {
      display: none;
    }
    
    .mobile-menu-btn {
      display: flex;
    }

    header {
      position: sticky;
    }
  
    .pricing-cards {
      flex-direction: column;
      align-items: center;
    }
  
    .grid-3 {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    
    .grid-3 > div {
      padding: 2rem 1.5rem;
    }
    
    .steps {
      gap: 1.5rem;
    }
    
    .card {
      width: 100%;
      max-width: 320px;
    }

    /* Switch to mobile flowchart layout */
    .flowchart-comparison {
      flex-direction: column;
      gap: 2rem;
      align-items: center;
    }

    .flowchart-section {
      max-width: 90%;
    }
  }
  
  @media (max-width: 480px) {
    .logo {
      font-size: 2rem;
    }
    
    .btn {
      padding: 0.625rem 1.25rem;
      font-size: 0.8rem;
    }
    
    h1 {
      font-size: 2rem;
    }
    
    .subtitle {
      font-size: 1.125rem;
    }
  }

  /* Legal pages styling */
  .legal-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
  }

  .legal-content h1 {
    color: var(--color-primary-600);
    margin-bottom: 1rem;
  }

  .legal-content h2 {
    color: var(--color-primary-700);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary-100);
  }

  .legal-content h3 {
    color: var(--color-primary-600);
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .legal-content ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
  }

  .legal-content li {
    margin-bottom: 0.5rem;
    color: var(--color-secondary-700);
  }

  .legal-content p {
    color: var(--color-secondary-700);
    margin-bottom: 1.5rem;
  }

  .highlight {
    background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-primary-100) 100%);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-primary-200);
    margin: 2rem 0;
  }

  .highlight p {
    color: var(--color-primary-800);
    margin-bottom: 0;
  }

  .highlight ul {
    color: var(--color-primary-700);
    margin-bottom: 0;
  }

  .contact-info {
    background: var(--color-secondary-50);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-secondary-200);
    margin: 3rem 0;
  }

  .contact-info h2,
  .contact-info h3 {
    color: var(--color-primary-600);
    margin-top: 0;
  }

  .back-link {
    display: inline-flex;
    align-items: center;
    margin-top: 3rem;
    color: var(--color-primary-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
  }

  .back-link:hover {
    color: var(--color-primary-700);
    text-decoration: underline;
  }
  