/* ============================================================
   EstateCheck — estatecheck.one
   Section-grouped stylesheet. Each landing section has its own
   block below; to replace a section, swap its HTML block in
   index.html and the matching CSS block here.
   ============================================================ */

/* ===== tokens & base ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --ink: #16202e;
  --ink-soft: #4d5a6c;
  --accent: #0f4c81;
  --accent-dark: #0b3a63;
  --accent-soft: #e8f0f8;
  --line: #dfe5ec;
  --radius: 10px;
  --container: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }

h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; }

@media (min-width: 720px) {
  h1 { font-size: 2.9rem; }
  h2 { font-size: 1.9rem; }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 56px 0; }
@media (min-width: 720px) { section { padding: 80px 0; } }

.section-intro {
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 2rem;
}

/* Primary CTA button (shared) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn svg { flex: none; }
.btn--small { font-size: 0.9rem; padding: 0.55em 1em; }

/* ===== header ===== */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo svg { flex: none; }

/* ===== hero ===== */
.hero {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  text-align: center;
}
.hero .container { max-width: 820px; }
.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.35em 1em;
  margin-bottom: 1.2rem;
}
.hero p.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 2rem;
}
@media (min-width: 720px) { .hero p.lede { font-size: 1.25rem; } }
.hero-cta { margin-bottom: 1.6rem; }
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.45em 1.1em;
}
.powered-by svg { flex: none; }

/* ===== report (what's inside) ===== */
.report { background: var(--bg); }
.report-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .report-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .report-grid { grid-template-columns: 1fr 1fr 1fr; } }
.report-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg);
}
.report-card h3 { margin-bottom: 0.35em; }
.report-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.verdict-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.8em;
}
.verdict-chips span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 0.25em 0.6em;
}

/* ===== why (not just a chatbot) ===== */
.why { background: var(--bg-alt); }
.why-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 860px) { .why-list { grid-template-columns: 1fr 1fr; } }
.why-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.why-item h3 { margin-bottom: 0.35em; }
.why-item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.9em;
}
.evidence-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.2em 0.7em;
  background: var(--bg-alt);
}
.evidence-tags span:first-child {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.source-ladder {
  margin-top: 0.9em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.source-ladder b { color: var(--accent); font-weight: 700; }

/* ===== stack (AI stack) ===== */
.stack {
  background: var(--accent-dark);
  color: #fff;
  text-align: center;
}
.stack .container { max-width: 760px; }
.stack h2 { color: #fff; }
.stack p { color: #cfdcea; margin: 0 auto; max-width: 620px; }
.stack-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 700;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.6em 1.4em;
  margin-bottom: 1.4rem;
}

/* ===== screens (report screenshots) ===== */
.screens { background: var(--bg); }
.screens-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .screens-grid { grid-template-columns: 1fr 1fr 1fr; } }
.screen-slot { text-align: center; }
.screen-frame {
  aspect-ratio: 3 / 4;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.screen-frame svg { opacity: 0.45; }
.screen-slot figcaption {
  margin-top: 0.7em;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== faq ===== */
.faq { background: var(--bg-alt); }
.faq .container { max-width: 760px; }
.faq details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
  flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ===== cta (final) ===== */
.cta {
  background: var(--bg);
  text-align: center;
}
.cta .container { max-width: 680px; }
.cta p {
  color: var(--ink-soft);
  margin: 0 auto 1.8rem;
  max-width: 520px;
}

/* ===== footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 36px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 1.2rem;
}
.footer-links a { color: var(--ink-soft); }
.disclaimer {
  max-width: 760px;
  margin: 0 0 1.2rem;
}
.copyright { margin: 0; }

/* ===== inner pages (privacy / terms) ===== */
.page { padding: 48px 0 72px; }
.page .container { max-width: 720px; }
.page h1 { font-size: 1.9rem; margin-bottom: 0.3em; }
.page .updated { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 2rem; }
.page h2 { font-size: 1.2rem; margin-top: 2em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 0.4em; }
