/* Flow States Shared Styles */

/* CSS Variables */
:root {
  --primary-color: #2D3436;
  --accent-color: #6C5CE7;
  --bg-color: #FFFFFF;
  --text-color: #2D3436;
  --secondary-text: #636E72;
  --highlight-bg: #F8F9FA;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  padding: 0 20px;
}

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 20px;
  padding-top: 5rem;
}

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
  color: var(--primary-color);
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: var(--accent-color);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--primary-color);
}

p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-text);
}

ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--secondary-text);
  font-size: 1.125rem;
}

li {
  margin-bottom: 0.75rem;
}

strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Content Boxes */
.concept-box {
  background: var(--highlight-bg);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  border: 1px solid rgba(108, 92, 231, 0.1);
}

.concept-box h2:first-child,
.concept-box h3:first-child {
  margin-top: 0;
}

/* Navigation Bar */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-color);
  border-bottom: 1px solid rgba(108, 92, 231, 0.1);
  padding: 1rem 0;
  z-index: 1000;
}

.nav-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 2.5rem;
}

.logo {
  text-decoration: none;
  display: inline-block;
}

.logo img {
  height: 2rem;
  width: auto;
  vertical-align: middle;
}

/* Hide text but keep it accessible for screen readers */
.logo .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Page Navigation */
.page-nav {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: calc(100vw - 2rem);
  padding: 0 1rem;
  pointer-events: none;
  z-index: 100;
}

.nav-button {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg-color);
  border: 1px solid rgba(108, 92, 231, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
  color: var(--accent-color);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

/* Remove legacy pseudo-element arrows */
.nav-button::before { content: none !important; }

/* SVG icon inside button */
.nav-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.nav-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* No pseudo-elements anymore; icons are inline SVG */

/* Progress Bar */
.nav-progress {
  position: fixed;
  top: 4.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(108, 92, 231, 0.1);
  z-index: 1000;
}

.nav-progress-bar {
  height: 100%;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

/* Page Indicator */
.page-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  background: var(--bg-color);
  padding: 0.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.2);
}

.page-dot.active {
  background: var(--accent-color);
}

/* Breadcrumbs */
.breadcrumb {
  margin-bottom: 2rem;
  padding: 0;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--secondary-text);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 0.5rem;
  color: var(--secondary-text);
}

.breadcrumb a {
  color: var(--accent-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--primary-color);
  font-weight: 500;
}

/* CTA Section Styles (for solutions page) */
.cta-section {
  margin-top: 4rem;
  padding-top: 0;
  border-top: 1px solid rgba(108, 92, 231, 0.1);
}

.cta-section h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.feature-item {
  background: var(--highlight-bg);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(108, 92, 231, 0.1);
}

.feature-item h3 {
  color: var(--accent-color);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.feature-item p {
  margin-bottom: 0;
  font-size: 1rem;
}

.signup-box {
  background: linear-gradient(to right, rgba(108, 92, 231, 0.1), rgba(108, 92, 231, 0.05));
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 3rem;
}

.signup-box .highlight {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: block;
}

.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
}

.privacy-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--secondary-text);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .container {
    padding: 40px 0;
    padding-top: calc(40px + 4.5rem);
    margin: 0 4rem; /* Increased margin to prevent arrow overlap */
  }

  h1 {
    font-size: 2rem;
  }

  .nav-button {
    width: 2.5rem;
    height: 2.5rem;
  }

  .nav-button.prev::before,
  .nav-button.next::before {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .page-nav {
    padding: 0 1rem;
    max-width: calc(100vw - 1rem);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .signup-box {
    padding: 1.5rem;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }
}
