/* Shared styles for the /vs/* comparison pages. Page-only rules stay in each page. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600;700&display=swap');

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

:root {
  --bg: #ffffff;
  --fg: #121212;
  --muted: #707070;
  --border: #ebebeb;
  --surface: #f9f9f9;
  --surface-inset: #f2f2f2;
  --success: hsl(152, 60%, 42%);
  --success-light: hsl(152, 50%, 96%);
  --warning: hsl(38, 92%, 50%);
  --radius: 0.75rem;
}

body {
  font-family: -apple-system, 'SF Pro Display', 'Inter', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; }

.comparison-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .comparison-container { padding: 0 32px; }
}

/* Utility classes */
.section-divide { border-top: 1px solid var(--border); }

.uppercase-label { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

.grid-2col { display: grid; gap: 64px; }

@media (min-width: 768px) { .grid-2col { grid-template-columns: 1fr 1fr; } }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
}

.hero .blob {
  position: absolute;
  top: -160px;
  right: -160px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  opacity: 0.04;
  background: radial-gradient(circle, var(--success) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  font-weight: 400;
}

@media (min-width: 768px) { .hero .subtitle { font-size: 1.5rem; } }

/* ==================== PLATFORM COMPARISON ==================== */
.platform-comparison {
  position: relative;
  padding: 48px 0;
  overflow: hidden;
}

@media (max-width: 767px) { .platform-comparison { padding: 32px 0; } }

.platform-comparison .blob {
  position: absolute;
  bottom: -240px;
  left: -240px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  opacity: 0.03;
  background: radial-gradient(circle, var(--fg) 0%, transparent 70%);
  pointer-events: none;
}

.platform-comparison h2 { font-size: 1.875rem; margin-bottom: 64px; }

@media (min-width: 768px) { .platform-comparison h2 { font-size: 2.25rem; } }

.platform-column .label-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.platform-column .title { font-size: 1.125rem; font-weight: 500; margin-bottom: 4px; }

.platform-column .desc { color: var(--muted); line-height: 1.7; margin-top: 16px; }

.platform-column .approach { font-size: 0.875rem; margin-top: 24px; line-height: 1.7; }

.platform-column .approach span { color: var(--muted); }

.key-diff p { font-size: 0.875rem; line-height: 1.8; }

.key-diff span { color: var(--muted); }

/* ==================== PRICING ==================== */
.pricing { padding: 48px 0; }

@media (max-width: 767px) { .pricing { padding: 32px 0; } }

.pricing > h2 { font-size: 1.875rem; margin-bottom: 24px; }

@media (min-width: 768px) { .pricing > h2 { font-size: 2.25rem; } }

.hiai-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--success); }

.pricing-honesty h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 16px; }

.pricing-honesty p { color: var(--muted); line-height: 1.7; margin-bottom: 24px; max-width: 640px; }

.pricing-honesty .note {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  background: var(--surface);
  border-radius: 12px;
  padding: 16px 20px;
}

/* ==================== FEATURES ==================== */
.features { padding: 48px 0; }

@media (max-width: 767px) { .features { padding: 32px 0; } }

.features > h2 { font-size: 1.875rem; margin-bottom: 64px; }

@media (min-width: 768px) { .features > h2 { font-size: 2.25rem; } }

.feature-row {
  display: grid;
  gap: 16px 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) { .feature-row { grid-template-columns: 140px 1fr 1fr; } }

.feature-row:first-of-type { border-top: none; }

.feature-row .feat-name { 
  font-size: 0.875rem; 
  font-weight: 500;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.feature-row .feat-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -7%;
  width: 114%;
  height: 1px;
  background: hsl(210 100% 50%);
}

.feature-row .feat-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

.feature-row .feat-note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
  font-style: italic;
}

/* ==================== REVIEWS ==================== */
.reviews { padding: 48px 0; }

@media (max-width: 767px) { .reviews { padding: 32px 0; } }

.reviews > h2 { font-size: 1.875rem; margin-bottom: 16px; }

@media (min-width: 768px) { .reviews > h2 { font-size: 2.25rem; } }

.reviews > .sub { color: var(--muted); margin-bottom: 64px; }

.review-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.speech-bubble {
  position: relative;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.speech-bubble svg {
  position: absolute;
  top: 10px;
  left: -12px;
  overflow: visible;
}

.review-item .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
}

.review-item .review-title { font-weight: 500; margin-bottom: 8px; }

.review-item .review-text { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

.reviews-hidden { display: none; }

.reviews-hidden.show { display: block; }

.expand-btn {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s;
}

.expand-btn:hover { color: var(--fg); }

/* ==================== DECISION ==================== */
.decision { padding: 48px 0; }

@media (max-width: 767px) { .decision { padding: 32px 0; } }

.decision > h2 { font-size: 1.875rem; margin-bottom: 64px; }

@media (min-width: 768px) { .decision > h2 { font-size: 2.25rem; } }

.decision li {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 16px;
  margin-bottom: 16px;
}

.decision .hiai-list li { border-left: 2px solid var(--success); }

/* ==================== CTA ==================== */
.cta {
  position: relative;
  padding: 64px 0;
  text-align: center;
  overflow: hidden;
}

.cta .blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  opacity: 0.04;
  background: radial-gradient(circle, var(--success) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 { font-size: 1.875rem; margin-bottom: 16px; }

@media (min-width: 768px) { .cta h2 { font-size: 2.25rem; } }

.cta .cta-sub { font-size: 1.125rem; color: var(--muted); line-height: 1.6; max-width: 480px; margin: 0 auto 40px; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--success);
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cta-btn:hover { opacity: 0.8; }

.cta .fine-print { margin-top: 24px; font-size: 0.75rem; color: var(--muted); }

/* ==================== TABLE OF CONTENTS ==================== */
.page-wrapper {
  display: grid;
  gap: 48px;
  position: relative;
}

@media (min-width: 1200px) {
  .page-wrapper {
    grid-template-columns: 1fr 200px;
    gap: 48px;
  }
}

.sidebar {
  position: relative;
  order: 2;
}

@media (max-width: 1199px) {
  .sidebar {
    display: none;
  }
}

.main-content {
  order: 1;
  min-width: 0; /* let the grid item shrink to the viewport on phones */
}

.toc {
  position: sticky;
  top: 6rem;
}

.toc-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.toc-list {
  list-style: none;
  border-left: 2px solid var(--border);
}

.toc-list li {
  margin-bottom: 0;
}

.toc-list a {
  display: block;
  padding: 0.5rem 0 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: all 0.2s;
  text-decoration: none;
}

.toc-list a.active,
.toc-list a:hover {
  color: var(--fg);
  border-left-color: hsl(210 100% 50%);
}

.toc-list a.active {
  font-weight: 500;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

