/* === REAL ESTATE AI STACK === */
/* Editorial magazine aesthetic — authoritative, clean, premium */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --text: #1b1b1f;
  --text-mid: #3d3d47;
  --text-light: #6b6b7b;
  --bg: #ffffff;
  --bg-warm: #faf9f7;
  --accent: #1a56db;
  --accent-hover: #1344b0;
  --accent-light: #e8eefb;
  --border: #e5e5ec;
  --border-light: #f0f0f4;
  --green: #0d7c5f;
  --green-bg: #ecfdf5;
  --green-border: #a7f3d0;
  --red: #c53030;
  --red-bg: #fef2f2;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --radius: 8px;
}

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

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg-warm);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  padding: 16px 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-name:hover { color: var(--accent); }

.site-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
}

.site-tagline { display: none; }

nav { display: flex; gap: 6px; }
nav a { color: var(--text-mid); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: 6px; transition: all 0.15s; }
nav a:hover { color: var(--accent); background: var(--accent-light); }

.container { max-width: 780px; margin: 0 auto; padding: 0 28px; }
.page-wrapper { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

.hero {
  background: linear-gradient(135deg, #1b1b1f 0%, #2d2d3a 100%);
  padding: 64px 0;
  margin-bottom: 48px;
}

.hero h1 { font-family: 'DM Serif Display', Georgia, serif; font-size: 40px; line-height: 1.2; color: #fff; letter-spacing: -0.5px; margin-bottom: 16px; max-width: 640px; }
.hero p { color: rgba(255,255,255,0.7); font-size: 18px; line-height: 1.6; max-width: 560px; margin-bottom: 0; }

.hero .badge-row { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero .badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; }

.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-light); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--text); display: inline-block; }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-bottom: 60px; }

.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.article-card:hover { box-shadow: var(--shadow-md); border-color: #d0d0da; transform: translateY(-2px); }
.article-card .article-meta { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent); margin-bottom: 10px; }
.article-card h2 { font-family: 'DM Serif Display', Georgia, serif; font-size: 20px; line-height: 1.3; margin: 0 0 10px 0; }
.article-card h2 a { color: var(--text); text-decoration: none; }
.article-card h2 a:hover { color: var(--accent); }
.article-card .excerpt { font-size: 14px; line-height: 1.6; color: var(--text-light); margin: 0; }

article { background: var(--bg); padding: 48px 0; margin-bottom: 40px; }
.article-meta { font-size: 13px; font-weight: 500; color: var(--text-light); margin-bottom: 12px; }
h1 { font-family: 'DM Serif Display', Georgia, serif; font-size: 38px; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.5px; }
h2 { font-family: 'DM Serif Display', Georgia, serif; font-size: 26px; margin-top: 48px; margin-bottom: 16px; }
h3 { font-size: 19px; font-weight: 700; margin-top: 32px; margin-bottom: 10px; }
p { margin-bottom: 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.tldr { background: var(--accent-light); border: 1px solid #c7d6f5; border-radius: var(--radius); padding: 24px 28px; margin: 24px 0 32px; font-size: 15px; line-height: 1.7; }
.tldr strong:first-child { display: block; margin-bottom: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); font-weight: 700; }

.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0 32px; font-size: 14px; line-height: 1.5; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.comparison-table th { background: var(--text); color: white; padding: 14px 18px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; }
.comparison-table td { padding: 14px 18px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--bg-warm); }
.comparison-table .price { font-weight: 700; color: var(--green); }
.comparison-table .best-for { font-style: italic; color: var(--text-light); font-size: 13px; }

.verdict { background: var(--green-bg); border: 1px solid var(--green-border); border-radius: var(--radius); padding: 24px 28px; margin: 24px 0; }
.verdict h4 { color: var(--green); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; font-weight: 700; }
.verdict p { margin-bottom: 0; font-size: 15px; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 28px; font-size: 14px; }
.pros, .cons { padding: 20px; border-radius: var(--radius); border: 1px solid; }
.pros { background: var(--green-bg); border-color: var(--green-border); }
.cons { background: var(--red-bg); border-color: #fecaca; }
.pros h4 { color: var(--green); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; font-weight: 700; }
.cons h4 { color: var(--red); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; font-weight: 700; }
.pros li, .cons li { margin-bottom: 6px; list-style: none; padding-left: 22px; position: relative; line-height: 1.5; }
.pros li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: bold; }
.cons li::before { content: '✗'; position: absolute; left: 0; color: var(--red); font-weight: bold; }

.faq { margin: 56px 0 32px; border-top: 2px solid var(--border); padding-top: 36px; }
.faq h2 { margin-top: 0; }
.faq-item { margin-bottom: 16px; background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.faq-item h3 { font-family: 'DM Serif Display', Georgia, serif; font-size: 18px; font-weight: 400; margin-top: 0; margin-bottom: 10px; }
.faq-item p { margin-bottom: 0; color: var(--text-mid); font-size: 15px; }

.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-warm); border: 1px solid var(--border); padding: 24px; border-radius: var(--radius); margin: 48px 0; font-size: 14px; }
.author-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.author-name { font-weight: 700; margin-bottom: 2px; }
.author-bio { color: var(--text-light); font-size: 13px; }

.affiliate-disclosure { font-size: 13px; color: var(--text-light); margin: 20px 0 28px; padding: 14px 20px; background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius); }

.prompt-box { background: #1b1b1f; color: #e8e8f0; padding: 24px 28px; border-radius: var(--radius); margin: 16px 0 28px; font-family: 'SF Mono', 'Consolas', monospace; font-size: 13px; line-height: 1.8; white-space: pre-wrap; word-wrap: break-word; box-shadow: var(--shadow-md); }
.prompt-label { font-family: 'Source Sans 3', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #6b9fff; margin-bottom: 10px; display: block; }
.prompt-box .placeholder { color: #fbbf24; }

.site-footer { background: var(--text); color: rgba(255,255,255,0.6); padding: 40px 0; font-size: 13px; }
.site-footer a { color: rgba(255,255,255,0.8); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.footer-brand { font-family: 'DM Serif Display', serif; font-size: 18px; color: #fff; margin-bottom: 8px; }

.cta-button { display: inline-block; background: var(--accent); color: white; padding: 12px 28px; border-radius: var(--radius); text-decoration: none; font-size: 15px; font-weight: 600; transition: all 0.2s; box-shadow: var(--shadow-sm); }
.cta-button:hover { background: var(--accent-hover); color: white; text-decoration: none; transform: translateY(-1px); }

@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .hero { padding: 40px 0; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .articles-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .comparison-table { font-size: 12px; }
  .comparison-table td, .comparison-table th { padding: 10px 12px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  nav { flex-wrap: wrap; }
  .footer-inner { flex-direction: column; }
}

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