/* AI Find Ready — shared styles */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f2f0ea;
  --text: #1c1f1d;
  --muted: #5d6460;
  --border: #e2ded4;
  --brand: #1d5c48;
  --brand-strong: #14463a;
  --brand-soft: #e4f2ec;
  --accent: #c2410c;
  --accent-soft: #fbeae2;
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(20, 30, 25, .05), 0 8px 24px rgba(20, 30, 25, .06);
  --radius: 14px;
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1412;
    --surface: #161d1a;
    --surface-2: #1c2521;
    --text: #e8ece9;
    --muted: #9aa6a0;
    --border: #2a3530;
    --brand: #5cc29b;
    --brand-strong: #7fd3b2;
    --brand-soft: #18322a;
    --accent: #f08a5d;
    --accent-soft: #3a231a;
    --on-brand: #0b1310;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1412;
  --surface: #161d1a;
  --surface-2: #1c2521;
  --text: #e8ece9;
  --muted: #9aa6a0;
  --border: #2a3530;
  --brand: #5cc29b;
  --brand-strong: #7fd3b2;
  --brand-soft: #18322a;
  --accent: #f08a5d;
  --accent-soft: #3a231a;
  --on-brand: #0b1310;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.logo img { width: 28px; height: 28px; }
.logo span em { font-style: normal; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .btn { color: var(--on-brand); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid var(--brand);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-strong); color: var(--on-brand); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: clamp(36px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.alt { background: var(--surface-2); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Chat mock */
.chat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow); padding: 20px; font-size: 15px;
}
.chat-top { display: flex; gap: 6px; margin-bottom: 16px; }
.chat-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.bubble { padding: 12px 16px; border-radius: 16px; margin-bottom: 12px; max-width: 92%; }
.bubble.user { background: var(--brand); color: var(--on-brand); margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.ai { background: var(--surface-2); border-bottom-left-radius: 4px; }
.bubble.ai ol { margin: 8px 0 0; padding-left: 20px; }
.bubble.ai li { margin: 4px 0; }
.pick { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 1px; }
.pick.you { background: var(--brand-soft); color: var(--brand); }
.missing { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--accent); border-radius: 12px; color: var(--accent); background: var(--accent-soft); font-size: 14px; }

/* Stats strip */
.strip { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.strip > div { background: var(--surface); padding: 26px 24px; }
.strip strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--brand); margin-bottom: 4px; letter-spacing: -.01em; }
.strip span { color: var(--muted); font-size: 15px; }

/* Cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 959px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.card.featured { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.card .tag { position: absolute; top: -12px; left: 24px; background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.card .price { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin: 4px 0 12px; }
.card .price small { font-family: var(--font); font-size: 14px; color: var(--muted); font-weight: 400; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 26px; margin: 8px 0; font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

/* Promise / no-promise */
.promise { display: grid; gap: 20px; }
@media (min-width: 720px) { .promise { grid-template-columns: 1fr 1fr; } }
.promise .card h3 { display: flex; align-items: center; gap: 10px; }
.promise .no { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
.no .dot { background: var(--accent); }
.plain { margin: 0; padding-left: 20px; }
.plain li { margin: 6px 0; }

/* CTA band */
.cta-band { background: var(--brand); color: var(--on-brand); border-radius: 24px; padding: 56px 32px; text-align: center; }
.cta-band h2 { color: var(--on-brand); }
.cta-band p { opacity: .88; max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }
.cta-band .btn:hover { background: var(--surface-2); color: var(--brand-strong); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 56px 16px 80px; }
@media (min-width: 720px) { .article { padding: 72px 32px 96px; } }
.article h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 12px; }
.article .meta { color: var(--muted); font-size: 15px; padding-bottom: 24px; border-bottom: 2px solid var(--brand); margin-bottom: 32px; }
.article h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 56px; color: var(--text); }
.article h3 { margin-top: 32px; }
.article ul { padding-left: 22px; }
.article li { margin: 8px 0; }
.callout { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 0 0 32px; font-size: 18px; }
.callout p:last-child { margin: 0; }
.note { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; font-size: 15.5px; }

figure { margin: 36px 0; }
figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Flow diagram (HTML-based so it reflows on mobile) */
.flow { display: flex; flex-direction: column; align-items: center; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 16px; }
.flow .node { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 18px; text-align: center; width: min(100%, 280px); }
.flow .node b { display: block; font-size: 15px; }
.flow .node small { color: var(--muted); font-size: 13px; }
.flow .arrow { width: 2px; height: 26px; background: var(--muted); position: relative; opacity: .6; }
.flow .arrow::after { content: ""; position: absolute; bottom: -1px; left: -4px; border: 5px solid transparent; border-top-color: var(--muted); border-bottom: 0; }
.flow .sources { display: grid; gap: 10px; width: 100%; max-width: 640px; padding: 14px; border: 1px dashed var(--border); border-radius: 12px; }
@media (min-width: 620px) { .flow .sources { grid-template-columns: repeat(3, 1fr); } }
.flow .sources .node { width: auto; }
.flow .direct { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.flow .indirect { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.flow .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: center; grid-column: 1 / -1; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid; }
.legend .d { background: var(--brand-soft); border-color: var(--brand); }
.legend .ind { background: var(--accent-soft); border-color: var(--accent); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 20px 0 28px; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-weight: 650; }
tbody th { font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td, tbody th { background: var(--surface); }

.layer { display: grid; gap: 14px; margin: 20px 0 24px; }
.layer > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.layer h3 { margin: 0 0 6px; font-size: 17px; }
.layer p { margin: 0; }

.article-cta { margin-top: 56px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.article-cta p { margin: 0; max-width: 460px; }
