/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: #1a1a2e;
  background: #f8f9fc;
}
img { max-width: 100%; height: auto; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* === LAYOUT === */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* === HEADER === */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
}
.site-logo span { color: #2563eb; }
.header-nav { display: flex; gap: 1rem; font-size: .85rem; }
.header-nav a { color: #64748b; font-weight: 500; }
.header-nav a:hover { color: #2563eb; text-decoration: none; }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.hero h1 {
  font-size: 1.75rem;
  line-height: 1.3;
  max-width: 720px;
  margin: 0 auto .75rem;
  font-weight: 800;
}
.hero .subtitle {
  color: #94a3b8;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.hero .updated {
  margin-top: 1rem;
  font-size: .8rem;
  color: #64748b;
}

/* === VERDICT BOX === */
.verdict-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 1.5rem;
  margin: -1.5rem auto 2rem;
  max-width: 760px;
  position: relative;
  z-index: 10;
}
.verdict-box .verdict-label {
  display: inline-block;
  background: #10b981;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .25rem .75rem;
  border-radius: 4px;
  margin-bottom: .75rem;
}
.verdict-box p { font-size: .95rem; color: #1a1a2e; }
.verdict-box strong { color: #047857; }

/* === SECTION === */
.section { padding: 2.5rem 0; }
.section:nth-child(even) { background: #fff; }
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: .25rem;
  color: #0f172a;
}
.section-subtitle {
  color: #64748b;
  font-size: .95rem;
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 .5rem;
  color: #1e293b;
}
h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 .4rem;
  color: #334155;
}
p + p { margin-top: .85rem; }

/* === COMPARISON TABLE === */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.comparison-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: .9rem;
}
.comparison-table thead { position: sticky; top: 0; z-index: 5; }
.comparison-table th {
  background: #0f172a;
  color: #fff;
  padding: .85rem 1rem;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
.comparison-table th:first-child { border-radius: 0; }
.comparison-table th.col-mindbloom { background: #7c3aed; }
.comparison-table th.col-joyous { background: #0891b2; }
.comparison-table th.col-kalm { background: #059669; }
.comparison-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: #f8fafc; }
.comparison-table .feature-label {
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}
.comparison-table .winner {
  background: #ecfdf5;
  font-weight: 600;
  color: #047857;
}
.winner-badge {
  display: inline-block;
  background: #10b981;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .15rem .4rem;
  border-radius: 3px;
  margin-left: .35rem;
  vertical-align: middle;
}

/* === PROVIDER CARDS === */
.provider-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.provider-card.mindbloom { border-top: 4px solid #7c3aed; }
.provider-card.joyous { border-top: 4px solid #0891b2; }
.provider-card.kalm { border-top: 4px solid #059669; }

.provider-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.provider-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.provider-icon.mb-icon { background: #7c3aed; }
.provider-icon.jo-icon { background: #0891b2; }
.provider-icon.kh-icon { background: #059669; }
.provider-name {
  font-size: 1.3rem;
  font-weight: 800;
}
.provider-tagline {
  font-size: .85rem;
  color: #64748b;
}

.provider-card .rating {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.rating-label { font-size: .85rem; color: #64748b; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}
.pros h4, .cons h4 { margin-top: 0; }
.pros h4 { color: #059669; }
.cons h4 { color: #dc2626; }
.pros ul, .cons ul {
  list-style: none;
  padding: 0;
  font-size: .9rem;
}
.pros li::before { content: "+  "; color: #10b981; font-weight: 700; }
.cons li::before { content: "-  "; color: #ef4444; font-weight: 700; }
.pros li, .cons li { margin-bottom: .35rem; line-height: 1.5; }

/* === HEAD TO HEAD === */
.h2h {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.h2h-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: #0f172a;
}
.h2h-verdict {
  background: #f0fdf4;
  border-left: 3px solid #10b981;
  padding: .75rem 1rem;
  margin-top: 1rem;
  font-size: .9rem;
  border-radius: 0 6px 6px 0;
}

/* === WHO SHOULD === */
.chooser-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.chooser-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  background: #fff;
}
.chooser-card h4 { margin-top: 0; }
.chooser-card.pick-kalm { border-left: 4px solid #059669; }
.chooser-card.pick-mindbloom { border-left: 4px solid #7c3aed; }
.chooser-card.pick-joyous { border-left: 4px solid #0891b2; }
.chooser-card ul { padding-left: 1.25rem; font-size: .9rem; }
.chooser-card li { margin-bottom: .3rem; }

/* === BOTTOM LINE === */
.bottom-line-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 1.75rem;
  margin: 1.5rem 0;
  text-align: center;
}
.bottom-line-box h3 { color: #047857; margin-top: 0; font-size: 1.2rem; }
.bottom-line-box .cta-btn {
  display: inline-block;
  background: #059669;
  color: #fff;
  font-weight: 700;
  padding: .75rem 2rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 1rem;
  transition: background .2s;
}
.bottom-line-box .cta-btn:hover { background: #047857; text-decoration: none; }

/* === FAQ === */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: .75rem;
  background: #fff;
}
.faq-q {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
}
.faq-q::after { content: "+"; font-size: 1.2rem; color: #94a3b8; flex-shrink: 0; margin-left: .5rem; }
.faq-item.open .faq-q::after { content: "-"; }
.faq-a {
  padding: 0 1.25rem 1rem;
  font-size: .9rem;
  color: #475569;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* === DISCLOSURE === */
.disclosure {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: .8rem;
  color: #92400e;
  margin: 2rem 0;
}

/* === FOOTER === */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2.5rem 0 1.5rem;
  font-size: .85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-col h4 { color: #fff; font-size: .9rem; margin-bottom: .75rem; margin-top: 0; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1rem;
  text-align: center;
  font-size: .75rem;
  color: #64748b;
}

/* === RESPONSIVE === */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.25rem; }
  .chooser-grid { grid-template-columns: 1fr 1fr 1fr; }
  .pros-cons { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 639px) {
  .pros-cons { grid-template-columns: 1fr; }
  .header-nav { gap: .5rem; font-size: .75rem; }
  .verdict-box { margin-top: -1rem; }
}
