/* Feature Single Page */

.feature-page section {
  padding: 3rem 0;
}

/* Section Backgrounds */
.feature-hero {
  background: linear-gradient(135deg, #EBF8FF 0%, var(--background-color) 100%);
}

.feature-problem {
  background: #FEF3C7;
}

.feature-solution {
  background: linear-gradient(to bottom, #FFFFFF 0%, #F0F9FF 100%);
}

.feature-workflow {
  background: #F5F3FF;
}

.feature-testimonials {
  background: #E0F2FE;
}

.feature-content {
  background: #FAFAFA;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-color);
}

/* Hero Section */
.feature-hero {
  text-align: center;
  padding: 4rem 0;
}

.feature-hero h1 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.value-proposition {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions a {
  text-decoration: none;
}

/* Problem Section */
.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pain-point {
  text-align: center;
  padding: 1.5rem;
}

.pain-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.pain-point h3 {
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.pain-stat {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.875rem;
}

/* Solution Section */
.solution-features {
  display: grid;
  gap: 3rem;
}

.solution-feature {
  padding: 2rem;
  background: var(--card-background-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--muted-border-color);
}

.solution-feature h3 {
  margin-bottom: 1rem;
  color: var(--primary);
  text-align: center;
}

.feature-benefits {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.feature-benefits li {
  margin-bottom: 0.5rem;
}

/* Workflow Section */
.workflow-steps {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.workflow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.step-number {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: var(--primary-inverse);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
}

.step-content h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.step-time {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--secondary-focus);
  color: var(--secondary-inverse);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  margin: 0.5rem 0;
}

.step-features {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--card-background-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  border-left: 4px solid var(--primary);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial cite {
  font-style: normal;
  color: var(--muted-color);
}

.testimonial cite strong {
  color: var(--color);
}

/* Content Section */
.feature-content {
  background: #FAFAFA;
  padding: 4rem 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* Section Headers - More Visual Breathing Room */
.content-wrapper h2 {
  margin-top: 4rem;
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 1.75rem;
  text-align: center;
  position: relative;
}

/* Add decorative line under h2 */
.content-wrapper h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* First h2 needs less top margin */
.content-wrapper h2:first-child {
  margin-top: 0;
}

/* Comparison Tables - Enhanced Visual Appeal */
.content-wrapper table {
  margin: 3rem auto;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: none;
}

.content-wrapper table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  text-align: left;
  border: none;
}

.content-wrapper table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--muted-border-color);
}

.content-wrapper table tr:last-child td {
  border-bottom: none;
}

.content-wrapper table tr:hover {
  background: var(--primary-focus);
}

/* Lists - More Visual Appeal */
.content-wrapper ul, .content-wrapper ol {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.content-wrapper li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.content-wrapper ul:not(:last-child) > li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Ordered lists with numbers */
.content-wrapper ol {
  counter-reset: item;
}

.content-wrapper ol > li::before {
  content: counter(item) ".";
  counter-increment: item;
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Fix for nested lists */
.content-wrapper ul ul, .content-wrapper ol ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.content-wrapper ul ul > li::before {
  content: '•';
  font-size: 1.2em;
}

/* Lists inside details (FAQ answers) */
.content-wrapper details ul {
  margin: 1rem 0;
}

.content-wrapper details li {
  padding-left: 1.5rem;
}

.content-wrapper details ul > li::before {
  content: '•';
  color: var(--muted-color);
}

/* Paragraphs with Better Spacing */
.content-wrapper p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--color);
}

/* Strong text blocks (categories) */
.content-wrapper p strong {
  display: block;
  color: var(--primary);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  margin-top: 2rem;
}

.content-wrapper p strong:first-child {
  margin-top: 0;
}

/* Research Fields / Category Sections */
.content-wrapper p:has(strong) {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1rem 0;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-wrapper p:has(strong):hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.content-wrapper p:has(strong) strong {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

/* Create a grid layout for research fields when they're consecutive */
.content-wrapper h2 + p:has(strong) {
  margin-top: 2rem;
}

/* FAQ Section - Interactive and Soothing */
.content-wrapper details {
  margin: 1.5rem 0;
  padding: 0;
  background: white;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  overflow: hidden;
}

.content-wrapper details:hover {
  border-color: var(--primary-focus);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.content-wrapper summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  padding: 1.5rem 1.75rem;
  position: relative;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content-wrapper summary::-webkit-details-marker {
  display: none;
}

.content-wrapper summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.content-wrapper details[open] summary::after {
  transform: rotate(45deg);
}

.content-wrapper details[open] {
  background: linear-gradient(to bottom, white, #F8FAFB);
}

.content-wrapper details > *:not(summary) {
  padding: 0 1.75rem 1.5rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Final CTA Section */
.content-wrapper > h2:last-of-type {
  margin-top: 5rem;
  font-size: 2rem;
}

.content-wrapper > p:has(em) {
  font-size: 1.125rem;
  color: var(--muted-color);
  text-align: center;
  font-style: italic;
  margin: 2rem 0;
}

/* Center the CTA paragraph */
.content-wrapper > p:has(a[href*="signup"]) {
  text-align: center;
}

/* CTA Links - Style as proper buttons */
.content-wrapper a[href*="signup"] {
  display: inline-block;
  margin: 1rem 0 2rem;
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.125rem;
  text-align: center;
  min-width: 200px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}

.content-wrapper a[href*="signup"]:hover {
  background: var(--primary-dark, #1E3A8A);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.content-wrapper a[href*="signup"]:active {
  transform: translateY(0);
}

/* Checklist at the end */
.content-wrapper > ul:last-child {
  background: linear-gradient(to bottom, white, #F8FAFB);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin: 2rem auto 0;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--primary-focus);
  position: relative;
}

/* Add a subtle connector line */
.content-wrapper > ul:last-child::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--primary-focus);
}

/* Style list items in the final checklist */
.content-wrapper > ul:last-child li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.content-wrapper > ul:last-child li:last-child {
  margin-bottom: 0;
}

/* Create proper spacing and alignment */
.content-wrapper > ul:last-child {
  text-align: left;
  list-style: none !important;
}

/* Style the checklist items - no pseudo-elements since content has checkmarks */
.content-wrapper > ul:last-child li {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  list-style: none !important;
  color: var(--color);
  padding-left: 0.5rem;
  font-weight: 500;
}

/* Remove any default list markers and pseudo-elements */
.content-wrapper > ul:last-child li::marker {
  display: none;
}

.content-wrapper > ul:last-child li::before {
  display: none !important;
}

/* Add transition for smooth hover effect */
.content-wrapper > ul:last-child {
  transition: all 0.3s ease;
}

/* Hover effect for the entire checklist card */
.content-wrapper > ul:last-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Responsive */
@media (max-width: 768px) {
  .feature-hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .pain-points-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .workflow-step {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .step-number {
    margin: 0 auto;
  }
  
  /* Content Section Mobile Adjustments */
  .feature-content {
    padding: 3rem 0;
  }
  
  .content-wrapper h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
  }
  
  .content-wrapper table {
    font-size: 0.875rem;
  }
  
  .content-wrapper table th,
  .content-wrapper table td {
    padding: 0.75rem 1rem;
  }
  
  .content-wrapper details {
    margin: 1rem 0;
  }
  
  .content-wrapper summary {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .content-wrapper > ul:last-child {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 1.5rem 2rem;
    max-width: none;
  }
  
  .content-wrapper > ul:last-child:hover {
    transform: none;
  }
  
  .content-wrapper > ul:last-child::before {
    display: none;
  }
  
  /* Research Fields mobile adjustments */
  .content-wrapper p:has(strong) {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 1.25rem;
  }
  
  .content-wrapper p:has(strong):hover {
    transform: none;
  }
  
  /* CTA Button mobile adjustments */
  .content-wrapper a[href*="signup"] {
    min-width: auto;
    width: 90%;
    max-width: 300px;
  }
}

/* Feature Navigation Section */
.feature-navigation {
  background: var(--background-color);
  padding: 4rem 0;
  border-top: 1px solid var(--muted-border-color);
  margin-top: 2rem;
}

.navigation-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.navigation-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.nav-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--muted-border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-focus);
}

.nav-card:hover::before {
  transform: scaleX(1);
}

.nav-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nav-label {
  font-size: 0.875rem;
  color: var(--muted-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.prev-card .nav-label {
  text-align: left;
}

.next-card .nav-label {
  text-align: right;
}

.nav-title {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.nav-title a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-title a:hover {
  color: var(--primary-dark, #1E3A8A);
}

.nav-description {
  color: var(--muted-color);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.prev-card .nav-title,
.prev-card .nav-description {
  text-align: left;
}

.next-card .nav-title,
.next-card .nav-description {
  text-align: right;
}

.nav-spacer {
  /* Empty space when no prev/next page */
}

/* Responsive Design */
@media (max-width: 768px) {
  .feature-navigation {
    padding: 3rem 0;
  }
  
  .navigation-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .nav-card {
    padding: 1.5rem;
  }
  
  .nav-title {
    font-size: 1.125rem;
  }
  
  /* Reset text alignment on mobile */
  .prev-card .nav-label,
  .next-card .nav-label,
  .prev-card .nav-title,
  .next-card .nav-title,
  .prev-card .nav-description,
  .next-card .nav-description {
    text-align: left;
  }
}