/* === ConvenientHouse minimal polish kit =============================== */
:root{
  --bg:#0b0c10;          /* near-black */
  --panel:#111218;       /* dark panel */
  --text:#e7e9ee;        /* primary text */
  --muted:#b9becb;       /* secondary text */
  --link:#8ab4ff;        /* link color */
  --accent:#4ade80;      /* CTA accent (green) */
  --accent-2:#60a5fa;    /* alt accent (blue) */
  --border:#262938;
  --maxw: 72rem;         /* 1152px */
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background:linear-gradient(180deg,#0a0b10, #0b0c10 40%, #0a0b10);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

/* Container & rhythm */
.ch-container{
  width:min(100%, calc(var(--maxw) + 2rem));
  margin-inline:auto;
  padding: 2.5rem 1rem;
}
section + section{ margin-top:2.25rem }
p{ margin: .75rem 0 0 }
.lead{ font-size:1.125rem; color:var(--muted) }

/* Headings */
h1{ font-size: clamp(2rem, 1.3rem + 2.2vw, 2.75rem); line-height:1.15; margin:.25rem 0 1rem }
h2{ font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem); margin:1.5rem 0 .5rem }
h3{ font-size:1.125rem; margin:1rem 0 .5rem }
h1, h2, h3{ letter-spacing:.2px }

/* Top nav */
.ch-nav{
  position:sticky; top:0; z-index:50;
  background:rgba(11,12,16,.8); backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--border);
}
.ch-nav .inner{
  display:flex; align-items:center; justify-content:space-between;
  width:min(100%, calc(var(--maxw) + 2rem));
  margin-inline:auto; padding:.8rem 1rem;
}
.ch-brand{ font-weight:700; letter-spacing:.3px; font-size: 1.5rem; }
.ch-brand-link{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.ch-brand-link:hover{
  transform: scale(1.02);
}
.ch-logo{
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.ch-links{ display:flex; gap:.75rem; flex-wrap:wrap }
.ch-links a{
  color:var(--text); text-decoration:none; padding:.5rem .75rem; border-radius:10px;
}
.ch-links a:hover{ background:#161822 }
.ch-cta{
  display:inline-flex; align-items:center; gap:.5rem;
  background:linear-gradient(180deg,var(--accent), #22c55e);
  color:#0b0c10; font-weight:700; border-radius:999px; padding:.55rem .95rem;
  box-shadow:var(--shadow); text-decoration:none
}
.ch-cta:hover{ filter:brightness(1.08) }

/* Content card */
.panel{
  background:linear-gradient(180deg,#121420,#10121c);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:1.25rem;
}

/* Lists */
ul,ol{ padding-left:1.25rem; margin:.5rem 0 0 }
li{ margin:.25rem 0; color:var(--text) }
li::marker{ color:var(--accent-2) }

/* Links */
a{ color:var(--link) }
a:hover{ text-decoration:underline }

/* Tables in Attributions/Terms */
table{ width:100%; border-collapse:collapse; border:1px solid var(--border); border-radius:10px; overflow:hidden }
th,td{ padding:.65rem .75rem; border-bottom:1px solid var(--border) }
thead th{ background:#151826 }

/* Footer */
footer{
  border-top:1px solid var(--border);
  background:#0a0b10;
  color:var(--muted);
}
footer .inner{
  width:min(100%, calc(var(--maxw) + 2rem));
  margin-inline:auto; padding:1.25rem 1rem; display:flex; gap:1rem; flex-wrap:wrap; align-items:center; justify-content:space-between;
}
footer a{ color:var(--muted); text-decoration:none }
footer a:hover{ color:var(--text) }

/* Responsive tweaks */
@media (max-width: 640px){
  .ch-links{ gap:.25rem }
  .panel{ padding:1rem }
}

/* === THEME SAFETY OVERRIDES (append at end of site.css) ================= */

/* Make sure all common text elements actually use the theme text color */
body, main, article, section,
p, li, h1, h2, h3, h4, h5, h6,
th, td, small { color: var(--text) !important; }

/* Light theme tokens — use for content pages */
body.theme-light{
  --bg:#ffffff;
  --panel:#ffffff;
  --text:#111827;        /* slate-900 */
  --muted:#475569;       /* slate-600 */
  --link:#1d4ed8;        /* blue-700 */
  --accent:#0ea5e9;      /* cyan-ish CTA */
  --accent-2:#2563eb;    /* blue alt */
  --border:#e5e7eb;      /* light border */
  background:#fff;
  color:var(--text);
}

/* Light theme components */
body.theme-light .ch-nav{
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(10px);
}
body.theme-light .panel{
  background:#fff;
  border:1px solid var(--border);
  box-shadow: 0 4px 18px rgba(2,6,23,.06);
}
body.theme-light a{ color: var(--link) }
body.theme-light footer{
  background:#fafafa;
  color:var(--muted);
  border-top:1px solid var(--border);
}
body.theme-light footer a{ color: var(--muted) }

/* FAQ specific styles */
.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-of-type {
  border-bottom: none;
}

.faq-question {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  letter-spacing: 0.025em;
}

.faq-item p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

/* === HOMEPAGE ENHANCEMENTS === */

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 3rem 0;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 20px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 2rem 0;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-button {
  align-self: center;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.hero-button-secondary {
  align-self: center;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: white;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.hero-button-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

/* Store Types Section */
.store-types-section {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.5rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.store-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.store-type-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.store-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

/* Store type cards now use clean white background */

.store-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.store-icon {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.store-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.store-type-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--text);
}

.store-type-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
  margin-bottom: 4rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 2rem 0;
  color: var(--text);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--text);
}

.step-content p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Experience Section */
.experience-section {
  margin-bottom: 2.5rem;
}

.experience-section .content-card {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 2px solid #bae6fd;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
  margin-bottom: 2rem;
  position: relative;
}

.experience-section .content-card::before {
  content: "💡";
  position: absolute;
  top: -15px;
  left: 30px;
  background: white;
  padding: 8px 12px;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.experience-cta {
  margin-top: 1.5rem;
  text-align: center;
}

/* Framework Section */
.framework-section {
  margin-bottom: 2.5rem;
}

.framework-section .content-card {
  background: linear-gradient(135deg, #fef7ff, #f3e8ff);
  border: 2px solid #e9d5ff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
  margin-bottom: 2rem;
  position: relative;
}

.framework-section .content-card::before {
  content: "🎯";
  position: absolute;
  top: -15px;
  left: 30px;
  background: white;
  padding: 8px 12px;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.framework-step {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
}

.step-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.step-header h3 {
  margin: 0;
  line-height: 1.2;
}

.step-number {
  background: #6366f1;
  color: white;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.framework-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.framework-step p {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* What We Do Section */
.what-we-do {
  margin-bottom: 2.5rem;
}

.content-card {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 2px solid #10b981;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
  margin-bottom: 2rem;
}

.content-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: var(--text);
}

/* Floating Scanner Visualization */
.scanner-visual {
  text-align: center;
  margin-top: 2rem;
}

.scanner-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 2rem 0;
  color: var(--text);
}

.floating-scanner-cards {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.floating-card {
  position: absolute;
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: float 8s ease-in-out infinite;
  transition: transform 0.3s ease;
  border: 2px solid transparent;
  background-clip: padding-box;
  width: 120px;
  height: 140px;
}

.floating-card:hover {
  transform: translateY(-10px) scale(1.05);
  z-index: 10;
}

.card-1 {
  top: 10px;
  left: 30px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  animation-delay: 0s;
  z-index: 4;
}

.card-2 {
  top: 10px;
  right: 30px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  animation-delay: 2s;
  z-index: 3;
}

.card-3 {
  bottom: 10px;
  left: 30px;
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  animation-delay: 4s;
  z-index: 2;
}

.card-4 {
  bottom: 10px;
  right: 30px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  animation-delay: 6s;
  z-index: 1;
}

.floating-card .card-icon {
  margin-bottom: 0.5rem;
}

.floating-card .card-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.floating-card .card-text {
  font-weight: 600;
  color: #374151;
  font-size: 1rem;
  margin: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(1deg); }
  50% { transform: translateY(-25px) rotate(0deg); }
  75% { transform: translateY(-10px) rotate(-1deg); }
}

.scanner-description {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
  margin: 2rem auto 0;
  line-height: 1.6;
}

.disclaimer {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
  text-align: center;
  margin: 1rem auto 0;
  max-width: 600px;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 3px solid #d1d5db;
}

/* Ad Slot */
.ad-slot {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: #64748b;
  margin: 3rem 0;
  font-style: italic;
}

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

.feature-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #059669);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: #10b981;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--text);
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .store-types-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark theme tokens — keep for the app page only */
body.theme-dark{
  --bg:#0b0c10;
  --panel:#111218;
  --text:#e7e9ee;
  --muted:#b9becb;
  --link:#8ab4ff;
  --accent:#4ade80;
  --accent-2:#60a5fa;
  --border:#262938;
  background: linear-gradient(180deg,#0a0b10, #0b0c10 40%, #0a0b10);
  color: var(--text);
}

/* Zillow-style guides page enhancements */
.guides-main {
  display: flex;
  gap: 2rem;
}

.guides-articles {
  flex: 1;
}

.guides-sidebar {
  width: 20rem;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .guides-main {
    flex-direction: column;
  }
  
  .guides-sidebar {
    width: 100%;
    margin-top: 2rem;
  }
}

/* Enhanced article card hover effects */
.guide-card {
  transition: all 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Category badge styling */
.guide-category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-category-badge.search-strategy {
  background-color: #dbeafe;
  color: #1e40af;
}

.guide-category-badge.decision-framework {
  background-color: #dcfce7;
  color: #166534;
}

.guide-category-badge.home-inspection {
  background-color: #fef3c7;
  color: #92400e;
}

.guide-category-badge.coming-soon {
  background-color: #e9d5ff;
  color: #7c3aed;
}

/* Key Insight callout styling */
.key-insight {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 2px solid #bae6fd;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.key-insight-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.key-insight-icon {
  font-size: 1.25rem;
}

.key-insight-title {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e40af;
}

.key-insight-content {
  color: #374151;
  line-height: 1.6;
}

.key-insight-content p {
  margin: 0 0 1rem 0;
}

.key-insight-content p:last-child {
  margin-bottom: 0;
}