/* =============================================================
   VizAI public site: shared components that sit below the fold.
   FAQ accordions, the dark call-to-action band, the footer, the
   compare table, the "deflected vs answered" question lists, and
   the plain legal pages (privacy, terms, 404). Tokens come from
   site.css, which every page loads first.
   ============================================================= */

/* ---------- FAQ accordions (native <details>, so they work without JS) ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-1); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--sh-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--ink); border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: inherit; color: inherit; letter-spacing: 0; }
.faq summary:hover { color: var(--signal-deep); }
.faq .chev { flex-shrink: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--sunken); color: var(--ink-2); transition: transform 0.25s ease, background-color 0.2s ease; }
.faq details[open] .chev { transform: rotate(180deg); background: var(--signal-soft); color: var(--signal-deep); }
.faq .answer { padding: 0 20px 20px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.faq details[open] .answer { animation: faq-in 0.28s ease; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Dark call-to-action band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--ground); color: var(--on-dark); border-radius: 28px 6px 28px 6px; padding: 48px 24px; text-align: center; box-shadow: var(--sh-3); }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(168, 204, 185, 0.28), transparent 60%), radial-gradient(ellipse 60% 90% at 0% 100%, rgba(214, 91, 37, 0.42), transparent 65%); }
.cta-band h2 { color: var(--on-dark); font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.cta-band p { color: var(--on-dark-2); max-width: 560px; margin: 0 auto; }
.cta-band .cta-row { justify-content: center; }
.cta-band .eyebrow, .cta-band .link { color: var(--signal-on-dark); }
.cta-band .tiny { margin-top: 16px; }
@media (min-width: 768px) { .cta-band { padding: 72px 48px; } }

/* ---------- Footer ---------- */
.footer { background: var(--ground-deep); color: var(--on-dark-2); padding: 64px 0 32px; font-size: 14px; }
.footer-top { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(254, 249, 251, 0.08); }
.footer .brand { margin-bottom: 14px; }
.footer-blurb { max-width: 300px; line-height: 1.6; }
.footer-mail { display: inline-block; margin-top: 14px; color: var(--on-dark); text-decoration: none; font-weight: 600; }
.footer-mail:hover { color: var(--signal-on-dark); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer h2 { font: 700 12px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 14px; }
.footer-cols li + li { margin-top: 10px; }
.footer-cols a { color: var(--on-dark-2); text-decoration: none; }
.footer-cols a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 13px; }
.footer-by { display: inline-flex; align-items: center; gap: 8px; }
.footer-by img { height: 14px; width: auto; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.1fr 2fr; } .footer-cols { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Compare table (desktop) and cards (phone) ---------- */
.compare-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 20px 6px 20px 6px; box-shadow: var(--sh-2); overflow: hidden; }
.compare-table { display: none; width: 100%; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { padding: 18px 20px; vertical-align: top; text-align: left; border-top: 1px solid var(--line); }
.compare-table thead th { border-top: 0; background: var(--sunken); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.compare-table thead th.us { background: var(--ground); color: var(--on-dark); }
.compare-table tbody th { font-weight: 600; color: var(--ink); width: 24%; }
.compare-table td { color: var(--ink-2); width: 38%; }
.compare-table td.us { background: rgba(168, 204, 185, 0.16); color: var(--ink); font-weight: 500; }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; font-size: 12px; font-weight: 700; vertical-align: -3px; }
.mark-no { background: var(--bad-soft); color: var(--bad); }
.mark-yes { background: var(--good-soft); color: var(--good); }
.compare-cards { display: grid; gap: 12px; }
.compare-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--sh-1); }
.compare-card h3 { font: 700 12px/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.compare-card dl { display: grid; gap: 10px; margin: 0; }
.compare-card dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.compare-card dt.us { color: var(--signal-deep); }
.compare-card dd { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }
.compare-card dd.us { color: var(--ink); font-weight: 600; }
@media (min-width: 768px) { .compare-table { display: table; } .compare-cards { display: none; } .compare-wrap.cards-only { display: none; } }
@media (max-width: 767px) { .compare-wrap { background: none; border: 0; box-shadow: none; border-radius: 0; } }

/* ---------- "Usually deflected" vs "answered with names" ---------- */
.qlist { border-radius: var(--r-bar); padding: 22px 24px; border: 1px solid var(--line); background: var(--card); }
.qlist h3 { font: 700 12px/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.qlist li { position: relative; padding: 8px 0 8px 26px; font-size: 15px; border-top: 1px dashed var(--line); }
.qlist li:first-child { border-top: 0; }
.qlist li::before { position: absolute; left: 0; top: 8px; font-weight: 700; }
.qlist.no { background: var(--sunken); }
.qlist.no h3 { color: var(--muted); }
.qlist.no li { color: var(--muted); }
.qlist.no li::before { content: '\2715'; color: var(--bad); font-size: 13px; }
.qlist.yes { border-color: rgba(168, 204, 185, 0.9); box-shadow: 0 0 0 4px var(--air-soft); }
.qlist.yes h3 { color: var(--good); }
.qlist.yes li { color: var(--ink); }
.qlist.yes li::before { content: '\2713'; color: var(--good); }

/* ---------- Example queries and numbered cards (industry pages) ---------- */
.quotes { margin-top: 14px; display: grid; gap: 8px; }
.quotes li { padding: 8px 12px; border-radius: 10px 3px 10px 3px; background: var(--sunken); font-size: 14px; font-style: italic; color: var(--ink); }
.numbered { display: grid; gap: 14px; counter-reset: num; }
.numbered > li { counter-increment: num; padding-left: 60px; }
.numbered > li::before { content: counter(num, decimal-leading-zero); position: absolute; left: 20px; top: 24px; font: 700 22px/1 var(--font-head); color: var(--signal-deep); }

@media (min-width: 640px) { .numbered > li { padding-left: 76px; } .numbered > li::before { left: 26px; } }

/* ---------- Legal pages and 404 ---------- */
.legal { padding: 56px 0 88px; }
.legal .back { display: inline-flex; margin-bottom: 28px; color: var(--signal-deep); text-decoration: none; font-weight: 600; }
.legal .back:hover { text-decoration: underline; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 12px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--ink-2); line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 12px; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--signal-deep); }
.legal .updated { display: inline-block; margin-bottom: 20px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--sunken); font-size: 13px; color: var(--muted); }
.legal-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px 6px 20px 6px; padding: 28px 22px; box-shadow: var(--sh-1); }
@media (min-width: 640px) { .legal-card { padding: 44px 48px; } }
.notfound { min-height: calc(100vh - 64px); display: flex; align-items: center; text-align: center; padding: 72px 0; }
.notfound .code { font: 700 clamp(96px, 20vw, 160px)/1 var(--font-head); letter-spacing: -0.04em; margin-bottom: 8px; }
.notfound h1 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 12px; }
.notfound p { color: var(--on-dark-2); margin-bottom: 28px; }
