/* ==========================================================================
   LeadSave AI - Content pages
   Layout for the About, trade, comparison and blog pages. Shared chrome
   (promo bar, nav, footer) matches the other subpages; colours come from
   theme.css, which loads after this file.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 16px; line-height: 1.7; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; text-wrap: balance; }
p, ul, ol, figure, blockquote { margin: 0; }

.container { width: min(1140px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Promo bar ---------- */
.promo-bar { position: relative; z-index: 31; }
.promo-bar-inner { max-width: 1140px; margin: 0 auto; padding: 9px 20px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; font-size: 0.9rem; }
.promo-bar-tag { font-size: 0.75rem; text-transform: uppercase; white-space: nowrap; }
.promo-bar-text { line-height: 1.45; }
.promo-bar-short { display: none; }
.promo-bar-was { opacity: 0.6; text-decoration: line-through; margin-left: 2px; }
.promo-bar-code { display: inline-block; margin-left: 2px; padding: 0 7px; border-radius: 6px; }
.promo-bar-cta { font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 640px) { .promo-bar-long { display: none; } }
@media (max-width: 480px) { .promo-bar-tag, .promo-bar-was { display: none; } .promo-bar-short { display: inline; } }

/* ---------- Navbar ---------- */
.navbar { position: sticky; top: 0; z-index: 30; }
.nav-wrap { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.08rem; }
.brand-mark { width: 36px; height: auto; display: block; }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-link, .nav-cta, .nav-login { text-decoration: none; font-size: 0.92rem; padding: 8px 12px; border: 1px solid transparent; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.nav-cta { margin-left: 12px; padding: 8px 16px; }
.nav-login { padding: 8px 16px; margin-left: 6px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid; border-radius: 10px; padding: 0; cursor: pointer; align-items: center; justify-content: center; gap: 5px; flex-direction: column; }
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.navbar.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
    .nav-wrap { flex-wrap: wrap; padding-block: 12px; }
    .nav-toggle { display: inline-flex; }
    .nav-actions { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 6px; padding-bottom: 10px; }
    .navbar.is-open .nav-actions { display: flex; }
    .nav-link, .nav-cta, .nav-login { text-align: center; margin: 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; font-size: 1rem; font-weight: 600; text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Page hero ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin-bottom: 22px; font-size: 0.86rem; color: var(--ls-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a { text-decoration: none; color: var(--ls-muted); }
.crumbs a:hover { color: var(--ls-fg); }
.eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.035em; max-width: 20ch; }
.page-hero .lede { margin-top: 20px; font-size: 1.12rem; max-width: 60ch; }
.byline { margin-top: 18px; font-size: 0.88rem; color: var(--ls-muted); }

/* ---------- Article body ---------- */
.content { padding-bottom: clamp(48px, 7vw, 96px); }
.prose { max-width: 70ch; color: var(--ls-fg-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(24px, 2.8vw, 32px); color: var(--ls-fg); }
.prose h3 { margin-top: 1.8em; font-size: 1.2rem; color: var(--ls-fg); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose strong { color: var(--ls-fg); font-weight: 600; }
.prose a { color: var(--ls-accent); }
.prose blockquote { border-left: 2px solid var(--ls-accent); padding: 4px 0 4px 20px; font-size: 1.1rem; color: var(--ls-fg); }
.note { padding: 18px 20px; border: 1px solid var(--ls-line-2); border-radius: var(--ls-radius); background: var(--ls-surface); font-size: 0.95rem; }

/* ---------- Example text conversation ---------- */
.chat { margin-block: 1.6em; max-width: 440px; padding: 20px; border: 1px solid var(--ls-line-2); border-radius: 22px; background: var(--ls-surface); }
.chat figcaption { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ls-accent); margin-bottom: 14px; }
.chat .sys { text-align: center; font-size: 0.78rem; color: var(--ls-muted); margin-bottom: 10px; }
.chat p { width: fit-content; max-width: 85%; padding: 9px 13px; border-radius: 18px; font-size: 0.93rem; line-height: 1.45; }
.chat p + p { margin-top: 8px; }
.chat .out { margin-left: auto; background: #0b84ff; color: #fff; border-bottom-right-radius: 6px; }
.chat .in { background: var(--ls-surface-2); color: var(--ls-fg); border-bottom-left-radius: 6px; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; margin-block: 1.6em; border: 1px solid var(--ls-line-2); border-radius: var(--ls-radius); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--ls-line-2); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--ls-surface-2); color: var(--ls-fg); font-weight: 600; }
.compare tbody th { color: var(--ls-fg); font-weight: 600; width: 26%; }
.compare td { color: var(--ls-fg-2); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 1.2em; display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--ls-line-2); border-radius: 12px; background: var(--ls-surface); }
.faq-list summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 600; color: var(--ls-fg); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--ls-accent); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 18px 16px; }

/* ---------- Call to action ---------- */
.cta-card { margin-top: clamp(48px, 6vw, 72px); padding: clamp(28px, 4vw, 44px); border: 1px solid; border-radius: 20px; }
.cta-card h2 { font-size: clamp(24px, 3vw, 34px); max-width: 24ch; }
.cta-card p { margin-top: 12px; max-width: 58ch; }
.cta-card .btn-row { margin-top: 22px; }

/* ---------- Related links ---------- */
.related { margin-top: clamp(40px, 5vw, 64px); }
.related h2 { font-size: 1.1rem; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; list-style: none; padding: 0; }
.link-grid a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--ls-line-2); border-radius: 12px; text-decoration: none; color: var(--ls-fg); background: var(--ls-surface); transition: border-color 0.2s; }
.link-grid a:hover { border-color: rgba(214, 226, 240, 0.3); }
.link-grid small { display: block; margin-top: 4px; color: var(--ls-muted); font-size: 0.85rem; line-height: 1.5; }

/* ---------- Blog index ---------- */
.post-list { display: grid; gap: 14px; list-style: none; padding: 0; max-width: 760px; }
.post-list a { display: block; padding: 22px 24px; border: 1px solid var(--ls-line-2); border-radius: var(--ls-radius); background: var(--ls-surface); text-decoration: none; transition: border-color 0.2s; }
.post-list a:hover { border-color: rgba(214, 226, 240, 0.3); }
.post-list h2 { font-size: 1.3rem; color: var(--ls-fg); }
.post-list p { margin-top: 8px; color: var(--ls-fg-2); }
.post-list time { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--ls-muted); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 22px 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 34px; height: auto; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; }
.footer-link { text-decoration: none; }
.compliance-note { width: 100%; margin-top: 10px; padding-top: 12px; font-size: 0.8rem; line-height: 1.75; }
