/* Main Styles */
:root {
  --teal: #20B2AA;
  --purple: #9370DB;
  --blue: #4169E1;
  --light-bg: #f9f9f9;
  --dark-text: #333333;
  --medium-text: #555555;
  --light-text: #777777;
  --border-light: #e0e0e0;
  --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: #ffffff;
  max-width: 100vw;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  color: var(--teal);
  margin-top: 3rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--purple);
  margin-top: 2rem;
}

h4 {
  font-size: 1.25rem;
  color: var(--blue);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Header */
.header {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.header h1 {
  color: white;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

/* Table of Contents */
.toc {
  background-color: var(--light-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid var(--border-light);
}

.toc h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.toc ul {
  list-style-type: none;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: var(--medium-text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* Cards */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card h3 {
  color: var(--teal);
  margin-top: 0;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: var(--card-shadow);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table th {
  background-color: var(--teal);
  color: white;
  text-align: left;
  padding: 1rem;
}

.comparison-table tr:nth-child(even) {
  background-color: var(--light-bg);
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
}

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

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.feature-card h4 {
  color: var(--purple);
  margin-top: 0;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--teal);
}

/* Pros and Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

.pros, .cons {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.pros h4 {
  color: #4CAF50;
}

.cons h4 {
  color: #F44336;
}

.pros ul, .cons ul {
  padding-left: 1.5rem;
  margin-bottom: 0;
}

.pros li, .cons li {
  margin-bottom: 0.5rem;
}

/* Pricing Section */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.pricing-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  text-align: center;
}

.pricing-card h4 {
  color: var(--blue);
  margin-top: 0;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  margin: 1rem 0;
}

.period {
  font-size: 1rem;
  color: var(--light-text);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
  margin: 3rem 0;
  border-radius: 8px;
}

.cta h2 {
  color: white;
  margin-top: 0;
}

.cta p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.btn {
  display: inline-block;
  background-color: white;
  color: var(--purple);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--teal);
  color: white;
  transform: translateY(-3px);
  text-decoration: none;
}

/* FAQ Section */
.faq {
  margin: 3rem 0;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--purple);
  cursor: pointer;
}

.faq-answer {
  color: var(--medium-text);
}

/* Decision Flowchart */
.flowchart {
  margin: 2rem 0;
  text-align: center;
}

.flowchart img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

/* Evidence Vault */
.evidence {
  background-color: var(--light-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid var(--border-light);
}

.evidence h3 {
  margin-top: 0;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.evidence-item {
  background-color: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.evidence-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--dark-text);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--teal);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .features, .pricing {
    grid-template-columns: 1fr;
  }
  
  .comparison-table {
    font-size: 0.9rem;
  }
}

/* Accordion for FAQ */
.accordion {
  margin-bottom: 1rem;
}

.accordion-header {
  background-color: var(--light-bg);
  padding: 1rem;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header:hover {
  background-color: #e9e9e9;
}

.accordion-content {
  padding: 1rem;
  display: none;
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.accordion-header.active {
  border-radius: 4px 4px 0 0;
  background-color: var(--teal);
  color: white;
}

.accordion-header.active + .accordion-content {
  display: block;
}

/* Rating Stars */
.rating {
  color: #FFD700;
  font-size: 1.25rem;
  margin: 1rem 0;
}

/* Highlight Box */
.highlight-box {
  background-color: rgba(32, 178, 170, 0.1);
  border-left: 4px solid var(--teal);
  padding: 1rem;
  margin: 1.5rem 0;
}

/* Author Box */
.author-box {
  display: flex;
  align-items: center;
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 1.5rem;
}

.author-info h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.author-info p {
  margin-bottom: 0;
  color: var(--medium-text);
}

/* AI Disclosure Box */
.ai-disclosure {
  background-color: #f0f7ff;
  border: 1px solid #d0e3ff;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.ai-disclosure h4 {
  color: var(--blue);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.ai-disclosure p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--medium-text);
}

/* Click-to-reveal accordions */
.spec-accordion {
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}

.spec-header {
  background-color: var(--light-bg);
  padding: 1rem;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-content {
  padding: 1rem;
  display: none;
  border-top: 1px solid var(--border-light);
}

.spec-header.active + .spec-content {
  display: block;
}

/* Interactive elements */
.interactive-element {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  padding: 2rem;
  background-color: white;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.carousel-control {
  background-color: var(--teal);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-control:hover {
  background-color: var(--purple);
}

/* Decision Flowchart Interactive */
.flowchart-interactive {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.flowchart-question {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.flowchart-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.flowchart-option {
  padding: 1rem 2rem;
  background-color: var(--light-bg);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.flowchart-option:hover {
  background-color: var(--teal);
  color: white;
}

.flowchart-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--light-bg);
  border-radius: 8px;
  text-align: center;
  display: none;
}

.flowchart-result.active {
  display: block;
}

/* Performance Chart */
.performance-chart {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.chart-container {
  height: 400px;
  margin-top: 1.5rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.highlight {
  color: var(--teal);
  font-weight: 700;
}