/* Base Styles with Theme Support */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
}

body {
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.5;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  text-align: center;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 7rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.subtitle {
  color: var(--text-color);
  text-align: center;
  margin-bottom: 2.5rem;
}

button {
  cursor: pointer;
  font-family: var(--body-font);
}

/* Container */
.pricing-container {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  padding-top: 90px; /* Ensure enough space below fixed nav */
}

/* User Type Tabs */
.user-type-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--divider-color);
  margin-bottom: 2.5rem;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--text-light);
  transition: color 0.2s, border-color 0.2s;
}

.tab-button:hover {
  color: var(--text-color);
}

.tab-button.active {
  color: var(--accent-teal);
  border-bottom: 2px solid var(--accent-teal);
}

/* Pricing Plans */
.pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card:hover {
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-5px);
}

.pricing-card.highlighted {
  border-color: var(--accent-teal);
}

.empty-badge-spacer {
  height: 24px; /* Should match the height of the popular-badge */
  visibility: hidden;
}

.popular-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gold-gradient);
  color: var(--nav-bg);
  text-align: center;
  padding: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  height: 24px;
}

/* Updated card structure for button alignment */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--divider-color);
}

.card-header.with-badge {
  padding-top: 2rem;
}

.button-container {
  padding: 1.5rem;
  margin-top: auto;
  border-top: 1px solid var(--divider-color);
}

.button-spacer {
  flex-grow: 1;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-teal);
}

.price-container {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-color);
}

.billing-cycle {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-left: 0.25rem;
}

.billing-details {
  font-size: 0.875rem;
  color: var(--text-medium);
}

.savings {
  color: var(--success-color);
  font-size: 0.875rem;
  font-weight: 500;
}

.earned-credits {
  color: var(--accent-teal);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.25rem;  /* Add a little space between savings and earned credits */
}

.plan-description {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin: 1.25rem 0;
}

.cta-button {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-mint) 100%);
  color: var(--nav-bg);
  border: none;
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(2, 200, 223, 0.3);
}

.secondary-button {
  background-color: transparent;
  color: var(--accent-teal);
  border: 1px solid var(--accent-teal);
}

.secondary-button:hover {
  background-color: var(--feature-icon-bg);
  transform: translateY(-3px);
}

/* Features */
.features-container {
  padding: 1.5rem;
}

.features-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.features-list {
  list-style-type: none;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.feature-header {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 1.5rem 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--divider-color);
  width: 100%;
}

.icon {
  flex-shrink: 0;
  margin-right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
}

.included-icon {
  color: var(--checkmark-color);
}

.not-included-icon {
  color: var(--text-light);
}

.feature-text {
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.feature-name {
  font-weight: 500;
  color: var(--text-color);
}

.feature-value {
  margin-left: 0.25rem;
  color: var(--subtle-text);
}

/* Information Icon */
.info-icon {
  display: inline-flex;
  margin-left: 0.375rem;
  color: var(--accent-teal);
  cursor: pointer;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--feature-icon-bg);
  border: 1px solid var(--accent-teal);
  transition: all 0.2s ease;
}

.info-icon:hover {
  background-color: var(--accent-teal);
  color: var(--nav-bg);
}

/* Add-ons Section */
.add-ons {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Add these styles to your pricing-styles.css file to enhance the add-on section */
.add-ons-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.add-on-card {
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 160px;
  background-color: var(--card-bg);
  box-shadow: var(--box-shadow);
}

.add-on-card:hover {
  border-color: var(--accent-teal);
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-5px);
}

.add-on-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--accent-teal);
}

.add-on-price {
  color: var(--accent-teal);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.add-on-description {
  font-size: 0.875rem;
  color: var(--subtle-text);
  line-height: 1.5;
}

.add-on-tag {
  display: inline-block;
  background-color: var(--feature-icon-bg);
  color: var(--accent-teal);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  margin-top: auto;
  margin-right: 0.5rem;
  margin-top: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .add-ons-container {
    grid-template-columns: 1fr;
  }
  
  .add-on-card {
    min-height: auto;
  }
}

/* Enterprise CTA */
.enterprise-cta {
  background-color: var(--bg-color);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--box-shadow);
  background: radial-gradient(circle at 70% 30%, var(--cta-gradient1), transparent 40%),
              radial-gradient(circle at 30% 70%, var(--cta-gradient2), transparent 40%);
}

.enterprise-cta-content {
  text-align: center;
}

.enterprise-cta h3 {
  color: var(--text-color);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.enterprise-cta p {
  color: var(--subtle-text);
  margin-top: 0.25rem;
}

.enterprise-button {
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-mint) 100%);
  color: var(--nav-bg);
  border: none;
  font-weight: 500;
  min-width: 200px;
  transition: all 0.3s ease;
}

.enterprise-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(2, 200, 223, 0.3);
}

/* Commitment Options */
.commitment-options {
  margin-top: 2.5rem;
}

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

.commitment-card {
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  padding: 1.5rem 1rem;
  background-color: var(--card-bg);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.commitment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.commitment-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--accent-teal);
}

.commitment-card.highlighted {
  background: var(--feature-icon-bg);
  border-color: var(--accent-teal);
}

.commitment-card.highlighted h3 {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.commitment-card p {
  font-size: 0.875rem;
  color: var(--subtle-text);
  line-height: 1.5;
}

/* SVG Icons */
.check-icon, .x-icon {
  fill: currentColor;
}

/* Modal Base Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: var(--card-bg);
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 800px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 20px var(--shadow-color);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--text-medium);
  font-size: 1.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--accent-teal);
}

.modal h2 {
  margin-bottom: 1.5rem;
  color: var(--accent-teal);
  border-bottom: 1px solid var(--divider-color);
  padding-bottom: 0.75rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--accent-teal);
}

.modal-section p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.modal-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.modal-section li {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

/* Feature Description in Modal */
#feature-modal-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--text-color);
}

.feature-level, .feature-tier {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  background-color: var(--feature-hover);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-level:hover, .feature-tier:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.feature-level h4, .feature-tier h4 {
  margin-bottom: 0.5rem;
  color: var(--accent-teal);
}

.feature-level p, .feature-tier p {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--text-color);
}

.feature-note {
  padding: 0.75rem;
  background-color: var(--feature-icon-bg);
  border-left: 4px solid var(--accent-teal);
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.875rem;
  margin-top: 1rem;
  color: var(--text-color);
}

/* Credit Packages */
.credit-packages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.credit-package {
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  text-align: center;
  position: relative;
  background-color: var(--card-bg);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.credit-package:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.highlight-package {
  border-color: var(--accent-teal);
  box-shadow: 0 4px 6px rgba(2, 200, 223, 0.15);
}

.best-value {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: var(--nav-bg);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.credit-package h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--accent-teal);
}

.package-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-teal);
  margin-bottom: 0.75rem;
}

.credit-package p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

/* Annual Packages Table */
.annual-packages {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.annual-packages th {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 2px solid var(--divider-color);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-color);
}

.annual-packages td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--divider-color);
  font-size: 0.875rem;
  color: var(--text-color);
}

.highlight-row {
  background-color: var(--feature-icon-bg);
  font-weight: 500;
}

.highlight-row td {
  color: var(--text-color);
}

.modal-actions {
  margin-top: 2rem;
  text-align: center;
}

/* Value Proposition Box */
.value-proposition-box {
  background-color: var(--feature-icon-bg);
  border-left: 4px solid var(--accent-teal);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

.value-proposition-box h4 {
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
}

.value-proposition-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-color);
}

/* Team Structure Diagram */
.team-structure-diagram {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: var(--bg-color);
  border-radius: 0.5rem;
}

.organization-box {
  border: 2px solid var(--accent-teal);
  border-radius: 0.5rem;
  padding: 1rem;
}

.organization-box h4 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--accent-teal);
}

.workspace-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.workspace-box {
  flex: 1;
  min-width: 150px;
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  background-color: var(--card-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workspace-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.workspace-box h5 {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent-teal);
}

.workspace-box ul {
  font-size: 0.8rem;
  margin-left: 1rem;
  color: var(--subtle-text);
}

.shared-box {
  border: 1px dashed var(--accent-teal);
  border-radius: 0.5rem;
  padding: 0.75rem;
  background-color: var(--feature-icon-bg);
  margin-top: 1rem;
}

.shared-box h5 {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: var(--accent-teal);
}

.shared-box p {
  font-size: 0.8rem;
  color: var(--subtle-text);
}

/* Decision Tree Styles */
.decision-tree {
  margin: 1.5rem 0;
}

.decision-node {
  margin-bottom: 1.5rem;
  position: relative;
}

.decision-node p {
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.decision-options {
  display: flex;
  gap: 2rem;
}

.decision-option {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.decision-option span {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  background-color: var(--feature-icon-bg);
  color: var(--accent-teal);
  font-weight: 500;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.decision-result {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  background-color: var(--card-bg);
  font-size: 0.85rem;
  color: var(--text-color);
}

.decision-connector {
  width: 1px;
  height: 1.5rem;
  background-color: var(--divider-color);
}

/* Workspace Pricing Table */
.workspace-pricing {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.workspace-pricing th, 
.workspace-pricing td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--divider-color);
  font-size: 0.875rem;
}

.workspace-pricing th {
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 2px solid var(--divider-color);
}

.workspace-pricing td {
  color: var(--subtle-text);
}

.feature-footnote {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-light);
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--divider-color);
}

.addon-divider {
  grid-column: 1 / -1; /* Span all columns */
  border-bottom: 1px solid var(--divider-color);
  margin: 1.5rem 0;
  position: relative;
}

.addon-divider-label {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-color);
  padding: 0 1rem;
  font-size: 0.875rem;
  color: var(--text-medium);
  font-weight: 500;
}

.credit-footnote {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--divider-color);
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

.learn-more-link {
  text-align: center;
  margin-top: 1.5rem;
}

.learn-more-link a {
  color: var(--accent-teal);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.learn-more-link a:hover {
  color: var(--accent-mint);
}

.learn-more-link a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
}

.learn-more-link a:hover::after {
  width: 100%;
}

/* Team Workspace Links */
.team-workspace-info {
  color: var(--accent-teal);
  font-size: 0.8rem;
  display: block;
  margin-top: 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.team-workspace-info:hover {
  color: var(--accent-mint);
  text-decoration: underline;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .enterprise-cta {
    flex-direction: row;
    text-align: left;
  }
  
  .enterprise-cta-content {
    text-align: left;
  }
  
  .pricing-plans {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .pricing-container {
    padding-top: 80px; /* Slightly less on mobile */
  }

  .pricing-plans {
    grid-template-columns: 1fr;
  }
  
  .add-ons-container,
  .commitment-grid {
    grid-template-columns: 1fr;
  }
  
  .user-type-tabs {
    justify-content: center;
  }
  
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }
  
  .credit-packages {
    grid-template-columns: 1fr;
  }
  
  .annual-packages {
    font-size: 0.75rem;
  }
  
  .annual-packages th,
  .annual-packages td {
    padding: 0.5rem 0.25rem;
  }
  
  .workspace-container {
    flex-direction: column;
  }
  
  .decision-options {
    flex-direction: column;
    gap: 1rem;
  }
  
  h1 {
    font-size: 1.75rem;
    margin-top: 5rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
}


/* Fix font family to match index.html (using system font stack) */
body, 
h1, h2, h3, h4, h5, h6,
button,
input,
select,
textarea,
.tab-button,
.pricing-card,
.plan-name,
.price,
.feature-name,
.feature-item,
.add-on-name,
.add-on-price,
.add-on-description {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Explicitly set heading font to match landing page */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}


/* Fix the h1 margin since we're handling spacing with padding-top on container */
h1 {
  margin-top: 0;
}

/* Make sure the logo and nav items are properly vertically centered */
.auth-buttons {
  display: flex;
  align-items: center;
}


/* Ensure the auth buttons are properly aligned */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Make sure the theme toggle is positioned correctly */
.theme-toggle {
  padding: 0;
  margin: 0;
}

/* Fix z-index issues to ensure nav stays on top */
nav {
  z-index: 1000;
}

.modal {
  z-index: 1001; /* Make sure modals appear above the fixed nav */
}

/* Additional helpful utility classes for consistency across pages */
.section-padding {
  padding-top: 90px; /* For consistent padding below nav on all sections */
}