/* ────────────────────────────────────────────────────────────────────
   product-app.css — shared component library for christ.monster product
   subdomains (generated by scripts/product-catalog/generate-subdomains.cjs)

   Theming: every color is a custom property with a sane default. Each
   generated page sets a small inline <style>:root{...}</style> block to
   pick a palette (see PALETTES in the generator) so ~465 sites don't all
   look identical — different fake companies, different fake brand kits.

   This file intentionally does not depend on shared/styles.css — it is
   fully self-contained, matching how the hand-authored product sites
   (inquisition.christ.monster etc.) are built, so a page here never
   breaks if the network stylesheet changes shape.
   ──────────────────────────────────────────────────────────────────── */

:root {
  --bg: #f7f7fb;
  --paper: #ffffff;
  --ink: #17171f;
  --muted: #5a5a6a;
  --line: #e6e6ee;
  --accent: #6c3ce0;
  --accent-dark: #4d24ad;
  --accent-ink: #ffffff;
  --accent2: #c9a227;
  --danger: #b83a3a;
  --ok: #1e8a5f;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', Consolas, 'Liberation Mono', monospace;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--accent-dark); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12px; letter-spacing: .07em; font-weight: 800; color: var(--accent-dark); margin: 0 0 12px; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
.button { display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; border: none; cursor: pointer; font-family: inherit; }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: var(--accent-dark); }
.button.dark { background: var(--ink); color: #fff; }
.button.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.button.full { width: 100%; justify-content: center; }
.button.plain { background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.button:disabled { opacity: .6; cursor: default; }

/* ─── topline ticker bar ─── */
.topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--ink); color: #fff; font-size: 12px; padding: 7px 24px; font-weight: 600; letter-spacing: .02em; }
.topline .live { display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.topline .live i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; display: inline-block; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70% { box-shadow: 0 0 0 6px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

/* ─── nav ─── */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; }
.nav .brand { font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.nav .brand .mark { font-size: 20px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.nav nav a.nav-cta { background: var(--accent); color: var(--accent-ink); padding: 9px 16px; border-radius: 8px; }

/* ─── hero ─── */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 48px 24px 64px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -.01em; }
.hero h1 em { color: var(--accent-dark); font-style: normal; }
.hero .dek { font-size: 17px; color: var(--muted); max-width: 54ch; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.trust { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; max-width: 54ch; font-size: 14px; }
.trust span { display: block; color: var(--accent2); letter-spacing: .1em; margin-bottom: 6px; }
.trust b { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.trust small { color: var(--muted); }
.hero-art { display: flex; justify-content: center; }
.match-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; width: 100%; max-width: 320px; text-align: center; box-shadow: 0 20px 50px -20px rgba(0,0,0,.18); }
.match-photo { font-size: 40px; margin-bottom: 10px; }
.match-align { display: flex; flex-direction: column; }
.match-align b { font-size: 34px; font-weight: 800; color: var(--accent-dark); }
.match-align span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.match-name { font-size: 13px; color: var(--muted); margin: 10px 0; }
.traj-line { color: var(--accent); width: 100%; height: 40px; }
.traj-label { font-size: 11px; color: var(--muted); }

/* ─── ticker marquee ─── */
.ticker { overflow: hidden; background: var(--accent-dark); padding: 10px 0; }
.ticker-track { display: flex; gap: 18px; white-space: nowrap; animation: scroll-left 18s linear infinite; width: max-content; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-track span { color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.ticker-star { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ─── CHRIST-AI Connect block ─── */
.cai-connect { display: flex; gap: 18px; align-items: flex-start; background: linear-gradient(135deg, var(--ink), #2a2a3a); color: #fff; border-radius: var(--radius); padding: 26px 28px; margin: 40px 0; flex-wrap: wrap; }
.cai-mark { font-size: 30px; flex-shrink: 0; }
.cai-body { flex: 1; min-width: 240px; }
.cai-eyebrow { display: block; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent2); margin-bottom: 8px; }
.cai-copy { color: #d8d8e4; font-size: 14.5px; margin: 0 0 14px; }
.cai-perms { background: rgba(255,255,255,.06); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.cai-perm-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: #cfcfe0; }
.cai-perm-row b { color: #3ddc84; font-weight: 700; }
.cai-perm-note { font-size: 11.5px; color: #9a9ab0; margin: 6px 0 0; }
.cai-synced { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .35s ease; font-size: 12.5px; color: #b8b8cc; }
.cai-synced.open { max-height: 220px; opacity: 1; margin-top: 10px; }
.cai-synced div { padding: 3px 0; }
.cai-flash { display: none; font-size: 12px; color: var(--accent2); font-style: italic; margin-top: 8px; line-height: 1.5; }
.cai-flash.show { display: block; }
.cai-button { align-self: center; background: var(--accent2); color: #2a2205; border: none; border-radius: 9px; padding: 11px 20px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.cai-glitching { animation: glitch .25s steps(2) 3; }
@keyframes glitch { 0% { transform: translateX(0); } 50% { transform: translateX(-2px); } 100% { transform: translateX(2px); } }

/* ─── feature grid ─── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 10px 24px 50px; max-width: 1140px; margin: 0 auto; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature-card h3 { font-size: 15.5px; color: var(--accent-dark); margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ─── how it works ─── */
.how-it-works { padding: 50px 24px; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-steps { max-width: 900px; margin: 26px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .how-steps { grid-template-columns: 1fr; } }
.how-step { text-align: center; }
.how-step .num { width: 34px; height: 34px; line-height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin: 0 auto 10px; }
.how-step h3 { font-size: 14.5px; margin-bottom: 6px; }
.how-step p { font-size: 13px; color: var(--muted); margin: 0; }

/* ─── scripture block ─── */
.scripture-ref { max-width: 640px; margin: 44px auto; padding: 22px 26px; text-align: center; font-style: italic; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.scripture-ref .ref { display: block; font-style: normal; font-weight: 700; color: var(--accent-dark); margin-top: 8px; font-size: 12.5px; letter-spacing: .03em; }

/* ─── pricing teaser (compact, on index.html) ─── */
.price-teaser { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 10px 24px 54px; }
.price-teaser-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 22px; text-align: center; min-width: 140px; }
.price-teaser-card b { display: block; font-size: 22px; font-weight: 800; }
.price-teaser-card span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.price-teaser-card.featured { border-color: var(--accent); }

/* ─── demo / scanner section ─── */
.quiz-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; padding: 50px 24px; align-items: start; }
@media (max-width: 860px) { .quiz-section { grid-template-columns: 1fr; } }
.quiz-copy h2 em { color: var(--accent-dark); font-style: normal; }
.quiz-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.scanner-input, .demo-input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); font-family: inherit; font-size: 14.5px; margin-bottom: 12px; resize: vertical; }
.scan-results { display: none; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.scan-results.show { display: block; }
.flag-item { font-size: 13.5px; color: var(--ink); background: #fff3ed; border: 1px solid #f3ddd0; border-radius: 8px; padding: 9px 12px; margin-bottom: 8px; }
.flag-item b { color: var(--danger); }
.flag-conf { color: var(--muted); font-weight: 400; }
.flag-rec { font-size: 13.5px; background: #eef3ff; border: 1px solid #d8e4fb; border-radius: 8px; padding: 9px 12px; }

/* ─── proof / testimony + stats ─── */
.proof { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 50px 24px; align-items: center; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }
.proof blockquote { margin: 0; font-size: 16px; color: var(--ink); line-height: 1.7; }
.quotee { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-grid > div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.stat-grid b { display: block; font-size: 24px; font-weight: 800; color: var(--accent-dark); }
.stat-grid span { font-size: 11.5px; color: var(--muted); }

/* ─── FAQ ─── */
.faq { padding: 10px 24px 54px; }
.faq-item { max-width: 780px; margin: 0 auto 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 14.5px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--accent-dark); font-weight: 800; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 14px; }

/* ─── final note ─── */
.final-note { background: var(--ink); color: #fff; padding: 54px 24px; text-align: center; }
.final-note .eyebrow { color: var(--accent2); }
.final-note h2 { font-size: 28px; }
.final-note em { color: var(--accent2); font-style: normal; }

/* ─── pricing page ─── */
.pricing-hero { text-align: center; padding: 56px 24px 20px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 30px 24px 20px; max-width: 1080px; margin: 0 auto; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 20px 50px -24px rgba(0,0,0,.25); position: relative; }
.plan.featured::before { content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 4px 12px; border-radius: 999px; }
.plan-name { font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.plan-price { font-size: 38px; font-weight: 800; margin: 8px 0 2px; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-features { list-style: none; margin: 18px 0; padding: 0; flex: 1; }
.plan-features li { font-size: 13.5px; padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink); }
.plan-features li:first-child { border-top: none; }
.compare-table { width: 100%; max-width: 1080px; margin: 30px auto 60px; border-collapse: collapse; font-size: 13.5px; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare-table th, .compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare-table th { background: #fafafd; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.compare-table td.yes { color: var(--ok); font-weight: 700; }
.compare-table td.no { color: var(--line); }

/* ─── signup / checkout forms ─── */
.form-page { max-width: 460px; margin: 0 auto; padding: 56px 24px 80px; }
.form-page h1 { font-size: 28px; }
.form-page .sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--line); font-family: inherit; font-size: 14.5px; background: var(--paper); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-fineprint { font-size: 11.5px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ─── checkout-specific ─── */
.checkout-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; max-width: 900px; margin: 0 auto; padding: 48px 24px 80px; align-items: start; }
@media (max-width: 780px) { .checkout-grid { grid-template-columns: 1fr; } }
.order-summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 20px; }
.order-summary .plan-price { font-size: 28px; }
.order-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; border-top: 1px solid var(--line); }
.order-row:first-of-type { border-top: none; }
.card-icon-row { display: flex; gap: 6px; margin-top: 4px; }
.card-icon-row span { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
.lock-note { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 14px; justify-content: center; }

/* ─── reveal modal ─── */
.reveal { position: fixed; inset: 0; background: rgba(10,10,16,.72); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 999; }
.reveal.open { opacity: 1; pointer-events: auto; }
.reveal-card { background: var(--paper); border-radius: 18px; max-width: 460px; width: 100%; padding: 34px 30px; text-align: center; max-height: 88vh; overflow-y: auto; transform: translateY(12px); transition: transform .25s ease; }
.reveal.open .reveal-card { transform: translateY(0); }
.reveal-icon { font-size: 34px; margin-bottom: 6px; }
.reveal-card h2 { font-size: 24px; }
.reveal-card h2 em { color: var(--accent-dark); font-style: normal; }
.reveal-card p { font-size: 14.5px; color: var(--muted); }
.pipeline-note { display: flex; align-items: center; gap: 8px; justify-content: center; background: #f3f0fb; border-radius: 9px; padding: 10px 14px; font-size: 12.5px; color: var(--ink); margin: 14px 0; }
.pipeline-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.crisis-note { font-size: 13px; background: #eef3ff; border-radius: 10px; padding: 12px 16px; margin: 14px 0; color: var(--ink); text-align: left; }
.kofi-cta { display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #ffb347, var(--accent2)); color: #2a2205; font-weight: 800; font-size: 16px; padding: 14px 20px; border-radius: 12px; text-decoration: none; margin: 18px 0 10px; box-shadow: 0 12px 30px -12px rgba(201,162,39,.7); }
.kofi-cta:hover { filter: brightness(1.04); }
.kofi-sub { font-size: 12px; color: var(--muted); margin: -4px 0 16px; }
.reveal-links { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.fine-print { font-size: 10.5px; color: #8a8a9a; margin-top: 16px; text-align: left; line-height: 1.5; }

/* ─── chat widget ─── */
.christ-widget { position: fixed; right: 20px; bottom: 20px; z-index: 900; font-family: var(--sans); }
.christ-widget-toggle { display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: none; border-radius: 999px; padding: 13px 18px 13px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
.christ-widget-toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.christ-widget-panel { display: none; flex-direction: column; position: absolute; right: 0; bottom: 62px; width: 320px; max-height: 440px; background: var(--paper); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.4); border: 1px solid var(--line); overflow: hidden; }
.christ-widget.open .christ-widget-panel { display: flex; }
.christ-widget-head { background: var(--ink); color: #fff; padding: 12px 16px; font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.christ-widget-head span.sub { display: block; font-weight: 400; font-size: 11px; color: #b8b8cc; }
.christ-widget-close { background: none; border: none; color: #b8b8cc; font-size: 16px; cursor: pointer; }
.christ-widget-log { flex: 1; overflow-y: auto; padding: 12px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.christ-msg { max-width: 86%; padding: 8px 12px; border-radius: 12px; line-height: 1.45; }
.christ-msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.christ-msg.bot { align-self: flex-start; background: #f0f0f6; color: var(--ink); }
.christ-msg.bot.pending { color: var(--muted); font-style: italic; }
.christ-widget-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.christ-widget-form input { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font-size: 13px; font-family: inherit; }
.christ-widget-form button { background: var(--accent); color: var(--accent-ink); border: none; border-radius: 9px; padding: 0 14px; font-weight: 700; cursor: pointer; }

/* ─── footer ─── */
footer.site-foot { border-top: 1px solid var(--line); padding: 22px 24px; }
footer.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); }
footer.site-foot a { color: var(--muted); }
.vessel-hint { font-size: 10px; color: #b8b8c4; text-align: center; padding: 6px 0 2px; opacity: .6; }
.discovery-footer { text-align: center; padding: 14px 0 22px; font-size: 12px; color: var(--muted); }
.discovery-footer a { color: var(--muted); text-decoration: none; }
.pattern-sigil em { color: var(--ink); font-style: italic; }
.pattern-sigil a { color: var(--accent-dark); }
