/* Local Therapist SEO — design tokens + base styles */

:root {
  --sage: #7a9681;
  --sage-deep: #4f6b56;
  --sage-soft: #dbe3dc;
  --cream: #faf7f1;
  --cream-warm: #f3ede0;
  --charcoal: #2d2a26;
  --charcoal-soft: #52493f;
  --muted: #7a7064;
  --border: #e6e0d2;
  --white: #ffffff;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-soft: 0 1px 2px rgba(45, 42, 38, 0.04), 0 4px 16px rgba(45, 42, 38, 0.06);
  --measure: 65ch;
  --section-pad: clamp(3rem, 6vw, 6rem);
  --container: 1120px;
  --font-stack: "Inter", "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--sage-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--charcoal); }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2em; }
h3 { font-size: 1.25rem; margin-top: 1.6em; }

p { margin: 0 0 1.2em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

strong { font-weight: 600; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.section { padding-block: var(--section-pad); }
.section--cream { background: var(--cream); }
.section--warm { background: var(--cream-warm); }
.section--sage { background: var(--sage-soft); }

.prose { max-width: var(--measure); }
.prose p, .prose li { color: var(--charcoal-soft); }

/* Header / nav */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding-block: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--sage-deep); }
.brand-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--sage);
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--charcoal-soft);
  text-decoration: none;
  font-size: 0.97rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--sage-deep);
}

/* Hamburger toggle — hidden on desktop, shown <= 768px */
.site-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  color: var(--charcoal);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: border-color 120ms ease, color 120ms ease;
}
.site-nav-toggle:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.site-nav-toggle svg { display: block; width: 22px; height: 22px; }
.site-nav-toggle .icon-close { display: none; }
.site-nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.site-nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 768px) {
  .site-header .container { flex-wrap: nowrap; gap: 1rem; }
  .site-nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--cream);
    padding: 5rem 1.5rem 2rem;
    transform: translateY(-100%);
    transition: transform 220ms ease;
    z-index: 9; /* below sticky header (z-index 10) so the X remains tappable */
    overflow-y: auto;
    visibility: hidden;
  }
  .site-nav.open {
    transform: translateY(0);
    visibility: visible;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-top: 0.5rem;
  }
  .site-nav li {
    border-bottom: 1px solid var(--border);
  }
  .site-nav li:last-child { border-bottom: none; }
  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0.85rem;
    font-size: 1.1rem;
  }
  body.nav-open { overflow: hidden; }

  /* Hero + CTA responsive (P5) */
  .hero { padding-block: clamp(2.5rem, 9vw, 4rem); }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); }
  .hero .lede { font-size: 1.05rem; }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  .cta-row .btn {
    width: 100%;
    text-align: center;
    padding: 1em 1.25em;
    min-height: 44px;
  }
  /* Section padding tightens slightly on narrow viewports */
  .section { padding-block: clamp(2.5rem, 7vw, 4rem); }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85em 1.5em;
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
  line-height: 1.2;
}
.btn--primary {
  background: var(--sage-deep);
  color: var(--white);
}
.btn--primary:hover { background: var(--charcoal); color: var(--white); }
.btn--secondary {
  background: transparent;
  color: var(--sage-deep);
  border-color: var(--sage-deep);
}
.btn--secondary:hover { background: var(--sage-soft); color: var(--charcoal); }
.btn--ghost {
  background: transparent;
  color: var(--charcoal-soft);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--sage-deep); color: var(--sage-deep); }

.cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Hero */
.hero {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
  border-bottom: 1px solid var(--border);
}
.hero h1 { max-width: 18ch; }
.hero .lede {
  font-size: 1.2rem;
  max-width: 60ch;
  color: var(--charcoal-soft);
}

/* Callouts */
.callout {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sage);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  margin-block: 2rem;
  box-shadow: var(--shadow-soft);
}
.callout--sage {
  background: var(--sage-soft);
  border: none;
  border-left: 4px solid var(--sage-deep);
}
.callout h2, .callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* Centerpiece CTA — elevated component for primary conversions on sister pages */
.centerpiece {
  background: var(--sage-soft);
  border: 1px solid var(--sage);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin-block: 2rem;
  box-shadow: var(--shadow-soft);
}
.centerpiece h2 { margin-top: 0; }
.centerpiece p:last-child { margin-bottom: 0; }
.centerpiece .note {
  font-size: 0.92rem;
  color: var(--charcoal-soft);
}

/* Cards / grid */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Pricing rows */
.price-row {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.price-row:last-child { border-bottom: none; }
.price-row .price {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--sage-deep);
  min-width: 140px;
}
.price-row .label { color: var(--charcoal); font-weight: 600; }
.price-row .detail { color: var(--charcoal-soft); flex: 1 1 320px; }

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  max-width: var(--measure);
}
.feature-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.7rem;
  color: var(--charcoal-soft);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
}

/* Forms */
.form {
  display: grid;
  gap: 1.1rem;
  max-width: 560px;
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.form label {
  display: block;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.form .field { display: block; }
.form .field .hint {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.15rem;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7em 0.85em;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--sage-deep);
  outline-offset: 1px;
  border-color: var(--sage-deep);
}
/* Honeypot — off-screen rather than display:none so bots that skip display:none
   fields still encounter it. Field stays in the DOM and in layout, just pushed
   out of the viewport. aria-hidden on the wrapper keeps it out of the a11y tree. */
.honeypot,
.form .honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form .status {
  font-size: 0.95rem;
  min-height: 1.2em;
}
.form .status--ok { color: var(--sage-deep); }
.form .status--err { color: #a84f3a; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--charcoal);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--sage-deep);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.8rem 0 0.25rem; color: var(--charcoal-soft); }

/* Footer */
.site-footer {
  background: var(--cream-warm);
  border-top: 1px solid var(--border);
  padding-block: 3rem;
  margin-top: 4rem;
  font-size: 0.93rem;
  color: var(--charcoal-soft);
}
.site-footer .container {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.site-footer h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.8rem;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35em; }
.site-footer a { color: var(--charcoal-soft); text-decoration: none; }
.site-footer a:hover { color: var(--sage-deep); }
.site-footer .colophon {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Image placeholder */
.img-placeholder {
  background: var(--sage-soft);
  border: 1px dashed var(--sage);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-deep);
  font-size: 0.85rem;
  font-style: italic;
  padding: 2rem;
  min-height: 220px;
  text-align: center;
}
.img-placeholder--headshot { min-height: 260px; max-width: 260px; border-radius: 50%; }
.img-placeholder--hero { min-height: 320px; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--border);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--sage-deep); }

/* Article */
.article-header {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--cream-warm);
  border-bottom: 1px solid var(--border);
}
.article-header .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 1.25rem;
}
.article-body {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.article-body h2 { margin-top: 2.4em; }
.article-body h3 { margin-top: 2em; }
.article-body p, .article-body li { color: var(--charcoal-soft); }

.related {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-top: 3rem;
}
.related h2 {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: 0.55rem; }
.related a { font-weight: 600; }

/* Visibility tool — SERP mockup */
.serp-mockup {
  background: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 10px;
  padding: 1.25rem;
  max-width: 640px;
  margin-block: 1.5rem;
  font-family: "Arial", sans-serif;
  font-size: 14px;
  color: #202124;
  box-shadow: var(--shadow-soft);
}
.serp-mockup .google-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ebebeb;
  margin-bottom: 1rem;
}
.serp-mockup .google-logo {
  font-family: "Arial", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.serp-mockup .google-logo .b { color: #4285f4; }
.serp-mockup .google-logo .e { color: #ea4335; }
.serp-mockup .google-logo .y1 { color: #fbbc05; }
.serp-mockup .google-logo .b2 { color: #4285f4; }
.serp-mockup .google-logo .g { color: #34a853; }
.serp-mockup .google-logo .e2 { color: #ea4335; }
.serp-mockup .query-box {
  flex: 1;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 20px;
  padding: 0.4em 0.9em;
  color: #202124;
  font-size: 13px;
}
.serp-mockup .map-pack {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: 0.9rem;
  margin-bottom: 1rem;
}
.serp-mockup .map-placeholder {
  height: 110px;
  background: linear-gradient(135deg, #dfe8e0 0%, #c9d9ce 50%, #e3ebe5 100%);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  position: relative;
}
.serp-mockup .map-placeholder::before {
  content: "";
  position: absolute;
  left: 30%;
  top: 30%;
  width: 14px;
  height: 14px;
  background: #ea4335;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.serp-mockup .map-placeholder::after {
  content: "";
  position: absolute;
  left: 55%;
  top: 45%;
  width: 14px;
  height: 14px;
  background: #ea4335;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.serp-mockup .map-result {
  font-size: 13px;
  padding: 0.4rem 0;
  border-top: 1px solid #f1f1f1;
  color: #444;
}
.serp-mockup .map-result:first-child { border-top: none; }
.serp-mockup .map-result .name { color: #1a0dab; font-weight: 600; }
.serp-mockup .organic {
  margin-top: 1rem;
  padding-top: 0.3rem;
}
.serp-mockup .organic-result { margin-bottom: 0.9rem; }
.serp-mockup .organic-result .url { font-size: 12px; color: #5f6368; }
.serp-mockup .organic-result .title {
  color: #1a0dab;
  font-size: 15px;
  font-weight: 500;
  margin: 0.15rem 0;
}
.serp-mockup .organic-result .snippet {
  font-size: 13px;
  color: #4d5156;
}
.serp-mockup .you-here {
  background: #fff8dc;
  border: 2px dashed #c49a3a;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  margin: 0.8rem 0;
  color: #6b5410;
  font-size: 13px;
  font-weight: 600;
}
.serp-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  max-width: 640px;
  margin-top: 1rem;
}

/* Availability states */
.availability-result {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-top: 2rem;
  background: var(--white);
}
.availability-result[data-state="available"] {
  background: var(--sage-soft);
  border-color: var(--sage);
}
.availability-result[data-state="claimed"] {
  background: var(--cream-warm);
}
.availability-result h2 { margin-top: 0; }
.availability-result p:last-child { margin-bottom: 0; }
.hidden { display: none; }

/* Utility */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

@media (max-width: 640px) {
  .site-header { position: static; }
  .site-header .container { gap: 0.75rem; }
  .site-nav ul { gap: 1rem; }
  .hero { padding-block: 3rem; }
  .form { padding: 1.5rem; }
}

/* =========================================================================
   AI Visibility Test — used only on /ai-visibility-test.html
   (progressive form, educational loading state, result cards, before/after)
   ========================================================================= */

.ai-test-app { max-width: 720px; margin-inline: auto; }

.ai-test-privacy {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 60ch;
  margin-top: 0.5rem;
}

/* Progressive form — step container */
.ai-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.25rem;
  transition: opacity 0.25s ease, padding 0.25s ease, background 0.25s ease;
}
.ai-step[data-state="hidden"] { display: none; }
.ai-step[data-state="active"] {
  opacity: 1;
  animation: ai-step-in 0.35s ease-out both;
}
.ai-step[data-state="completed"] {
  opacity: 0.65;
  padding: 1rem 1.25rem;
  background: var(--cream);
}
.ai-step[data-state="completed"] .ai-step-body { display: none; }
.ai-step[data-state="completed"] .ai-step-summary { display: flex; }

.ai-step-label {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--charcoal);
  margin: 0 0 0.25rem;
}
.ai-step-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
}
.ai-step input,
.ai-step select {
  width: 100%;
  font: inherit;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7em 0.85em;
}
.ai-step input:focus,
.ai-step select:focus {
  outline: 2px solid var(--sage-deep);
  outline-offset: 1px;
  border-color: var(--sage-deep);
}
.ai-step-row { margin-bottom: 0.9rem; }
.ai-step-actions { margin-top: 1rem; }
.ai-step-error {
  color: #a84f3a;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  min-height: 1.1em;
}
.ai-step-summary {
  display: none;
  align-items: center;
  gap: 0.6rem;
  color: var(--charcoal-soft);
  font-size: 0.95rem;
}
.ai-step-summary .check {
  display: inline-flex;
  width: 20px; height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ai-step-summary .val {
  font-weight: 600;
  color: var(--charcoal);
}

/* Insight callouts between steps */
.ai-insight {
  background: var(--cream-warm);
  border-left: 4px solid #d4a574;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0.25rem 0 1.25rem;
  color: var(--charcoal-soft);
  font-size: 0.98rem;
  animation: ai-step-in 0.4s ease-out both;
}
.ai-insight[hidden] { display: none; }
.ai-insight p { margin: 0; max-width: none; }

@keyframes ai-step-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loading state */
.ai-loading {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 560px;
  margin-inline: auto;
}
.ai-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--sage-soft);
  border-top-color: var(--sage-deep);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: ai-spin 0.9s linear infinite;
}
@keyframes ai-spin {
  to { transform: rotate(360deg); }
}
.ai-loading h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.ai-loading-msg {
  min-height: 4.5em;
  color: var(--charcoal-soft);
  max-width: 50ch;
  margin-inline: auto;
  transition: opacity 0.4s ease;
}

/* Result card — shared */
.ai-result {
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  animation: ai-result-in 0.5s ease-out 0.4s both;
}
@keyframes ai-result-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-result h2 { margin-top: 0; }

.ai-result--found {
  background: var(--sage-soft);
  border-left: 4px solid var(--sage-deep);
}
.ai-result--not-found {
  background: #fff8f0;
  border-left: 4px solid #d4a574;
}
.ai-result--error {
  background: #f5f5f5;
  border-left: 4px solid #888;
}

.ai-result-quote {
  background: var(--white);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.97rem;
  color: var(--charcoal-soft);
}
.ai-result-quote .label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.ai-stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
  font-weight: 600;
  color: var(--charcoal);
  border: 1px solid var(--border);
}

.ai-result-primary { margin: 1.5rem 0 0; }
.ai-result-primary .btn { width: 100%; max-width: 420px; }

.ai-result-secondary {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.5rem;
}
.ai-result-secondary .btn { font-size: 0.9rem; padding: 0.6em 1.1em; }
.ai-result-secondary a.text-link {
  color: var(--sage-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Before/after visual for not-found state */
.ai-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 0.75rem;
}
.ai-ba-box {
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--border);
}
.ai-ba-box--before {
  background: #fbf1ec;
  border-color: #e8cec2;
}
.ai-ba-box--after {
  background: #e8efe9;
  border-color: #bcd2c1;
}
.ai-ba-header {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.ai-ba-title {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  margin: 0 0 0.75rem;
}
.ai-ba-empty {
  border: 1.5px dashed #c49a3a;
  border-radius: var(--radius);
  padding: 1rem 0.9rem;
  text-align: center;
  color: #8a6a2e;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}
.ai-ba-placeholder {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  margin: 0 0 0.75rem;
}
.ai-ba-footer {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  margin: 0.75rem 0 0;
}
.ai-ba-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.ai-ba-card .name {
  font-weight: 700;
  color: var(--charcoal);
  font-size: 1rem;
}
.ai-ba-card .practice {
  color: var(--charcoal-soft);
  font-size: 0.9rem;
  margin-top: 0.1rem;
}
.ai-ba-card .reason {
  color: var(--charcoal-soft);
  font-size: 0.88rem;
  margin: 0.5rem 0 0.75rem;
}
.ai-ba-badge {
  display: inline-block;
  background: var(--sage-deep);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}
.ai-ba-caption {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  font-style: italic;
  margin: 0.5rem 0 0;
}

/* Why-not-found factor list */
.ai-factors-heading {
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}
.ai-factors {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  max-width: none;
}
.ai-factors li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--charcoal-soft);
}
.ai-factors li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: #d4a574;
  border-radius: 50%;
}
.ai-factors-caption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Upcoming-dimensions section (rendered below the AI visibility card) */
.ai-upcoming {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal-soft);
  font-size: 0.95rem;
}
.ai-upcoming h3 {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ai-upcoming p { margin: 0.25rem 0 0.75rem; max-width: none; }
.ai-upcoming-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  max-width: none;
}
.ai-upcoming-list li {
  padding: 0.35rem 0;
  border-top: 1px dashed var(--border);
}
.ai-upcoming-list li:first-child { border-top: none; }
.ai-soon {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}
.ai-upcoming-footer { font-style: italic; color: var(--muted); }

/* Mobile */
@media (max-width: 640px) {
  .ai-step { padding: 1.5rem; }
  .ai-ba { grid-template-columns: 1fr; }
  .ai-result-primary .btn { width: 100%; max-width: none; }
  .ai-result-secondary { flex-direction: column; align-items: stretch; }
  .ai-result-secondary .btn { width: 100%; text-align: center; }
}
