/* ============================================
   HomeSurvey.ai SEO Comparison Site - Stylesheet
   Standalone. Matches homesurvey.ai visual theme.
   ============================================ */

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

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  color: #1E1145;
  background: #fff;
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: #7C3AED; text-decoration: none; }
a:hover { color: #5B21B6; text-decoration: underline; }

/* ========== SITE HEADER ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #EDE9FE;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1E1145;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-header .brand:hover { text-decoration: none; color: #1E1145; }
.site-header .brand-logomark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7C3AED 0%, #1E1145 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.site-header .brand-text { line-height: 1; }
.site-header .brand-text .domain { color: #7C3AED; }

.site-header nav { display: flex; gap: 1.5rem; align-items: center; }
.site-header nav a {
  font-family: 'Inter', sans-serif;
  color: #4A5565;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
}
.site-header nav a:hover { color: #7C3AED; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: .6rem 1.25rem;
  text-decoration: none;
  font-size: .92rem;
  transition: background .2s, transform .1s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: #F59E0B;
  color: #fff;
}
.btn-primary:hover { background: #D97706; color: #fff; text-decoration: none; }

@media (max-width: 720px) {
  .site-header nav { display: none; }
  .header-inner { padding: .85rem 1rem; }
}

/* ========== BLOG HEADER (PAGE HERO) ========== */
.blog-header {
  background: linear-gradient(135deg, #1E1145 0%, #2D1B69 100%);
  padding: 5rem 2rem 5rem;
  text-align: center;
  color: #fff;
}
.blog-header .category-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,147,20,.15);
  border: 1px solid rgba(255,147,20,.3);
  color: #F59E0B;
  padding: .4rem 1.2rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
}
.blog-header .category-badge span.dot {
  width: 7px; height: 7px;
  background: #F59E0B;
  border-radius: 50%;
  display: inline-block;
}
.blog-header h1 {
  color: #fff;
  font-family: 'Geologica', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 820px;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.02em;
}
.blog-header .meta {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  font-family: 'Inter', sans-serif;
}

/* ========== ARTICLE CONTAINER ========== */
.blog-container {
  max-width: 820px;
  margin: -2rem auto 4rem;
  background: #fff;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 30px rgba(0,0,0,.08);
  position: relative;
  z-index: 2;
}
.blog-container h2 {
  font-family: 'Geologica', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #1E1145;
  margin: 2.75rem 0 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.blog-container h3 {
  font-family: 'Geologica', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2D1B69;
  margin: 2rem 0 .75rem;
  letter-spacing: -0.01em;
}
.blog-container p { margin-bottom: 1.25rem; color: #333; }
.blog-container strong { color: #1E1145; font-weight: 700; }
.blog-container ul, .blog-container ol { margin: 1rem 0 1.5rem 1.5rem; color: #333; }
.blog-container li { margin-bottom: .6rem; padding-left: .25rem; }
.blog-container a { color: #7C3AED; font-weight: 500; }

@media (max-width: 768px) {
  .blog-container { padding: 2rem 1.25rem; margin: -1rem 1rem 2rem; }
  .blog-header { padding: 3rem 1rem 3rem; }
}
@media (max-width: 480px) {
  .blog-container { padding: 1.5rem 1rem; margin: -0.5rem 0.75rem 1.5rem; border-radius: 12px; }
  .blog-container h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
  .blog-container h3 { font-size: 1.1rem; }
  .blog-header { padding: 2.5rem 1rem 2.5rem; }
}

/* ========== CALLOUT BOXES ========== */
.callout-box {
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
  border-left: 4px solid #7C3AED;
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.callout-box p { margin-bottom: .5rem; color: #2D1B69; }
.callout-box p:last-child { margin-bottom: 0; }

.callout-orange {
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e6 100%);
  border-left: 4px solid #F59E0B;
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.callout-orange p { margin-bottom: .5rem; color: #2D1B69; }
.callout-orange p:last-child { margin-bottom: 0; }

/* ========== STAT CARDS ========== */
.stat-row { display: flex; gap: 1.25rem; margin: 2rem 0; flex-wrap: wrap; }
.stat-card {
  flex: 1; min-width: 160px;
  background: #F5F3FF;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  border: 1px solid #DDD6FE;
}
.stat-card .number {
  font-family: 'Geologica', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #7C3AED;
  line-height: 1.2;
}
.stat-card .label { font-size: .85rem; color: #666; margin-top: .25rem; }

/* ========== COMPARISON TABLE ========== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: .93rem;
}
.comparison-table th {
  background: #1E1145;
  color: #fff;
  padding: .85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
}
.comparison-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid #DDD6FE;
  color: #333;
  vertical-align: top;
  line-height: 1.5;
}
.comparison-table tr:nth-child(even) td { background: #F9F7FF; }
.comparison-table .highlight-cell { color: #7C3AED; font-weight: 600; }

@media (max-width: 640px) {
  .comparison-table { font-size: .85rem; }
  .comparison-table th, .comparison-table td { padding: .55rem .7rem; }
}

/* ========== CTA BOX ========== */
.blog-cta {
  background: linear-gradient(135deg, #1E1145 0%, #2D1B69 100%);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0 1rem;
  color: #fff;
}
.blog-cta h3 {
  font-family: 'Geologica', sans-serif;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: .75rem;
  letter-spacing: -0.01em;
}
.blog-cta p { color: rgba(255,255,255,.78); margin-bottom: 1.5rem; font-size: 1rem; }
.blog-cta .cta-btn {
  display: inline-block;
  background: #F59E0B;
  color: #fff;
  padding: .9rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background .2s, transform .1s;
  font-family: 'Inter', sans-serif;
}
.blog-cta .cta-btn:hover { background: #D97706; color: #fff; text-decoration: none; transform: translateY(-1px); }
.blog-cta .micro {
  display: block;
  margin-top: .85rem;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  font-family: 'Inter', sans-serif;
}

/* ========== SOURCE NOTE ========== */
.source-note {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #DDD6FE;
  font-size: .82rem;
  color: #777;
  line-height: 1.65;
  font-style: italic;
}
.source-note strong { color: #555; font-weight: 700; }

/* ========== RELATED PAGES ========== */
.related-pages {
  margin-top: 3rem;
  padding: 2rem;
  background: #F5F3FF;
  border-radius: 12px;
}
.related-pages h3 {
  font-family: 'Geologica', sans-serif;
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: #1E1145;
}
.related-pages ul { list-style: none; margin: 0; padding: 0; }
.related-pages li { margin-bottom: .5rem; padding-left: 0; }
.related-pages li::before { content: "→"; color: #7C3AED; margin-right: .5rem; }
.related-pages a { color: #2D1B69; font-weight: 500; }

/* ========== SITE FOOTER ========== */
.site-footer {
  background: #0F0824;
  color: rgba(255,255,255,.6);
  padding: 2.5rem 1.5rem 1.75rem;
  font-size: .9rem;
  font-family: 'Inter', sans-serif;
}
.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer .brand {
  color: #fff;
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.site-footer .brand:hover { color: #fff; text-decoration: none; }
.site-footer a { color: rgba(255,255,255,.65); text-decoration: none; margin-left: 1.25rem; }
.site-footer a:hover { color: #F59E0B; text-decoration: none; }
.site-footer .copy { margin-right: 1rem; }

@media (max-width: 640px) {
  .site-footer .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer a { margin-left: 0; margin-right: 1rem; }
}

/* ========== HUB / INDEX PAGE ========== */
.hub-hero {
  background: linear-gradient(135deg, #1E1145 0%, #2D1B69 100%);
  padding: 6rem 1.5rem 6rem;
  text-align: center;
  color: #fff;
}
.hub-hero h1 {
  color: #fff;
  font-family: 'Geologica', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hub-hero .hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.78);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hub-hero .cta-btn {
  display: inline-block;
  background: #F59E0B;
  color: #fff;
  padding: .9rem 2.25rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.hub-hero .cta-btn:hover { background: #D97706; color: #fff; text-decoration: none; }

.hub-container {
  max-width: 1100px;
  margin: -3rem auto 5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.compare-card {
  background: #fff;
  border: 1px solid #EDE9FE;
  border-radius: 14px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(30,17,69,.04);
}
.compare-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(30,17,69,.09);
  border-color: #DDD6FE;
  text-decoration: none;
  color: inherit;
}
.compare-card .card-tag {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
  font-weight: 700;
  color: #7C3AED;
  margin-bottom: .75rem;
}
.compare-card h3 {
  font-family: 'Geologica', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1E1145;
  margin-bottom: .6rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.compare-card p {
  color: #555;
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.compare-card .card-cta {
  color: #7C3AED;
  font-weight: 600;
  font-size: .9rem;
  font-family: 'Inter', sans-serif;
}

.hub-section {
  padding: 3rem 0;
}
.hub-section h2 {
  font-family: 'Geologica', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  color: #1E1145;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.hub-section p {
  color: #444;
  font-size: 1.02rem;
  max-width: 820px;
  margin-bottom: 1rem;
}

/* ========== UTILITIES ========== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.7);
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.back-link:hover { color: #F59E0B; text-decoration: none; }
