/* ============================================================
   Ben Attanasio - shared styles
   Dark mode, Montserrat, single-CTA conversion + GEO blog
   ============================================================ */

:root {
  --bg:        #1a1c1a;   /* dark, a touch lighter/greener than old #131313 */
  --bg-soft:   #232622;   /* card / section panel */
  --bg-card:   #20231f;
  --text:      #f4f5f1;   /* near-white body */
  --text-dim:  #a9ad9f;   /* muted */
  --accent:    #8faa6f;   /* brighter tangent of the brand sage #7a8c68 */
  --accent-2:  #b8d199;   /* highlight for headline words */
  --accent-deep:#6f8a52;
  --border:    rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);
  --shadow:    0 10px 40px rgba(0, 0, 0, 0.35);
  --font:      'Montserrat', system-ui, -apple-system, sans-serif;
  --maxw:      1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -5%, rgba(143, 170, 111, 0.10), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(111, 138, 82, 0.06), transparent 40%);
}

a { color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow { max-width: 760px; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.hl { color: var(--accent-2); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #14160f;
  box-shadow: 0 8px 24px rgba(143, 170, 111, 0.25);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(143, 170, 111, 0.35);
}

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.9rem; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

.textlink {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 209, 153, 0.35);
  transition: border-color 0.15s ease;
}
.textlink:hover { border-color: var(--accent-2); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 28, 26, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
}
.wordmark .dot { color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 5.5rem 0 4rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  max-width: 20ch;
  margin: 0 auto 1.5rem;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 auto 2.2rem;
}
.hero-sub strong { color: var(--text); font-weight: 700; }

/* social proof row */
.proof-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}
.avatars { display: flex; }
.avatars img,
.avatars .av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  object-fit: cover;
  background: var(--accent-deep);
}
.avatars > :first-child { margin-left: 0; }
.stars { position: relative; display: inline-block; font-size: 1.05rem; line-height: 1; letter-spacing: 1px; }
.stars-bg { color: rgba(255, 255, 255, 0.18); }
.stars-fill { position: absolute; left: 0; top: 0; color: #e0b341; overflow: hidden; white-space: nowrap; }
.proof-text { color: var(--text-dim); font-size: 0.9rem; }

.hero-photo {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin: 0 auto 1.75rem;
  display: block;
}

/* ---------- stat strip ---------- */
.stat-strip {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 4rem);
  flex-wrap: wrap;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.stat { text-align: center; }
.stat-val { font-size: 1.9rem; font-weight: 800; display: block; }
.stat-label { color: var(--text-dim); font-size: 0.85rem; }

.strip-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 64ch;
  margin: 1.5rem auto 0;
}

/* ---------- sections ---------- */
section.block { padding: 4.5rem 0; }
section.block h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.lead { color: var(--text-dim); font-size: 1.1rem; max-width: 60ch; }

/* "what's inside" list */
.inside-list {
  list-style: none;
  margin: 2rem 0 2.5rem;
  display: grid;
  gap: 1rem;
  max-width: 720px;
}
.inside-list li {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  position: relative;
  padding-left: 3.1rem;
}
.inside-list li::before {
  content: "✓";
  position: absolute;
  left: 1.2rem;
  top: 1.1rem;
  color: var(--accent-2);
  font-weight: 800;
}
.inside-list li strong { display: block; }
.inside-list li span { color: var(--text-dim); font-size: 0.95rem; }

/* center CTA block */
.cta-block {
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 1.5rem;
  margin: 1rem 0;
}
.cta-block h2 { margin-bottom: 1.25rem; }

/* ---------- post cards ---------- */
.post-cards { display: grid; gap: 1.25rem; margin-top: 2rem; }
.post-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1.6rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-meta { color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.post-card h3 { font-size: 1.3rem; margin: 0.5rem 0 0.6rem; }
.post-card p { color: var(--text-dim); font-size: 0.97rem; }
.post-card .read { color: var(--accent-2); font-weight: 700; font-size: 0.9rem; display: inline-block; margin-top: 0.8rem; }

/* ---------- quiet trust links ---------- */
.trust {
  text-align: center;
  padding: 0.5rem 0 1.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.trust a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.trust a:hover { color: var(--accent-2); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 4rem 0 3rem;
  text-align: center;
}
footer h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1.75rem; }
footer .copy { margin-top: 2.5rem; color: var(--text-dim); font-size: 0.8rem; opacity: 0.7; }

/* ============================================================
   Blog article (GEO post)
   ============================================================ */
.article { padding: 3rem 0 4rem; }
.breadcrumb { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-2); }

.article h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 1.25rem; }
.article .updated { color: var(--accent); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.5rem; }

/* the direct-answer block AI models lift */
.answer {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1.3rem 1.5rem;
  font-size: 1.12rem;
  margin-bottom: 2.5rem;
}

.article h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2.5rem 0 0.9rem; }
.article h3 { font-size: 1.2rem; margin: 1.75rem 0 0.6rem; }
.article p { margin-bottom: 1.1rem; }
.article ul, .article ol { margin: 0 0 1.2rem 1.3rem; }
.article li { margin-bottom: 0.5rem; }

/* tables get cited heavily */
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
}
.article th, .article td {
  text-align: left;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-soft);
  vertical-align: top;
}
.article thead th {
  background: var(--accent-deep);
  color: #14160f;
  font-weight: 700;
}
.article tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }

/* in-article CTA */
.article-cta {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2.5rem 0;
}
.article-cta p { font-size: 1.1rem; margin-bottom: 1.25rem; }

.faq h3 { font-size: 1.15rem; margin-top: 1.6rem; }

/* code block (e.g. CLAUDE.md starter) */
.article pre {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}
.article pre code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  white-space: pre;
  color: var(--text);
}
.article p code, .article li code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  background: var(--bg-soft);
  border-radius: 5px;
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
}

/* ---------- responsive ---------- */
@media (max-width: 600px) {
  .topbar .wordmark { font-size: 0.95rem; }
  .hero { padding: 3.5rem 0 2.5rem; }
  section.block { padding: 3rem 0; }
}
