:root {
  --primary: #6a1b9a;
  --primary-dark: #4a0072;
  --accent: #ffb300;
  --accent-dark: #e89c00;
  --bg: #faf7fd;
  --text: #2a1530;
  --text-light: #5e4a66;
  --white: #ffffff;
  --border: #e3d6ea;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(106, 27, 154, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

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

/* Header */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
  color: var(--primary-dark);
}
.logo img { width: 36px; height: 36px; border-radius: 8px; }

#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
#nav-toggle span { width: 26px; height: 3px; background: var(--primary-dark); border-radius: 2px; }

#nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#nav-menu a { font-weight: 600; color: var(--text); }
#nav-menu a:hover { color: var(--primary); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); color: var(--primary-dark); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-small { padding: 8px 18px; font-size: 14px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 60px 0;
}
.hero-flex { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-text { flex: 1 1 480px; }
.hero-image { flex: 1 1 320px; text-align: center; }
.hero h1 { font-size: 36px; margin: 0 0 14px; line-height: 1.25; }
.hero p { font-size: 18px; opacity: 0.95; }
.hero-cta { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb { font-size: 14px; color: var(--text-light); padding: 16px 0; }
.breadcrumb a { color: var(--primary); }

/* Sections */
section { padding: 50px 0; }
section.alt { background: var(--white); }
h2.section-title {
  font-size: 28px;
  color: var(--primary-dark);
  margin-bottom: 10px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 36px;
}

/* Grid cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--primary-dark); margin-top: 8px; }
.card .icon { font-size: 32px; }

/* Table */
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.compare th, table.compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.compare th { background: var(--primary); color: var(--white); }
table.compare tr:last-child td { border-bottom: none; }

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 60px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px; top: 14px;
  width: 32px; height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* Reviews */
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.stars { color: var(--accent); font-size: 18px; }

/* FAQ */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-dark);
}
.faq-question::after { content: "+"; font-size: 22px; }
.faq-item.open .faq-question::after { content: "\2212"; }
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  color: var(--text-light);
}
.faq-item.open .faq-answer { max-height: 800px; padding: 0 20px 18px; }

/* Article content */
.article-body { background: var(--white); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-body h2 { color: var(--primary-dark); margin-top: 34px; }
.article-body h3 { color: var(--primary); }
.article-meta { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.related-links { background: var(--white); padding: 24px; border-radius: var(--radius); margin-top: 30px; box-shadow: var(--shadow); }
.related-links ul { padding-left: 20px; }

/* Footer */
footer.site-footer { background: var(--primary-dark); color: #f0e6f6; padding: 50px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.footer-grid h4 { color: var(--accent); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: #e6d6ee; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
  color: #d8c4e2;
}
.disclaimer-note {
  background: #fff3cd;
  border: 1px solid #ffe69c;
  color: #664d03;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  margin: 20px 0;
}

/* Responsive */
@media (max-width: 860px) {
  #nav-toggle { display: flex; }
  #nav-menu {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 14px;
  }
  #nav-menu.open { display: flex; }
  .hero h1 { font-size: 28px; }
  .hero-flex { flex-direction: column; text-align: center; }
  .hero-cta { justify-content: center; }
  .article-body { padding: 20px; }
}
