/* =====================================================================
   content-pages.css — shared marketing/content components
   Used by How It Works, Use Cases, FAQ, and the Blog. Matches the site
   chrome palette (navy #C25E00). Load AFTER site-chrome.css.
   ===================================================================== */

.cp {
  font-family: Inter, sans-serif; color: #1c2a3a;
  max-width: 1120px; margin: 0 auto; padding: 56px 24px 84px;
}
.cp h1, .cp h2, .cp h3, .cp h4 { font-family: Montserrat, Inter, sans-serif; color: #111827; }

/* --- hero --- */
.cp-hero { text-align: center; margin-bottom: 8px; }
.cp-eyebrow {
  text-transform: uppercase; letter-spacing: .15em; font-size: 12.5px;
  font-weight: 700; color: #C25E00; margin-bottom: 12px;
}
.cp-hero h1 { font-size: 42px; line-height: 1.1; margin: 0 0 16px; }
.cp-lead { font-size: 19px; line-height: 1.6; color: #374151; max-width: 760px; margin: 0 auto; }

/* --- section --- */
.cp-section { margin: 56px 0; }
.cp-section > h2 { font-size: 28px; margin: 0 0 8px; }
.cp-accent { width: 54px; height: 4px; background: #C25E00; border-radius: 3px; margin: 14px 0 24px; }
.cp-section > p { font-size: 16.5px; line-height: 1.7; color: #33445a; max-width: 840px; }

/* --- stat band --- */
.cp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 34px 0; }
.cp-stat { background: linear-gradient(160deg, #f6f8fb, #eef2f8);
  border: 1px solid #e3e9f2; border-radius: 12px; padding: 20px 14px; text-align: center; }
.cp-stat .num { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 25px; color: #C25E00; line-height: 1; }
.cp-stat .lbl { font-size: 12.5px; color: #5b6b82; margin-top: 8px; line-height: 1.3; }

/* --- card grid --- */
.cp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.cp-cards.two { grid-template-columns: repeat(2, 1fr); }
.cp-card { background: #fff; border: 1px solid #e3e9f2; border-radius: 14px;
  padding: 24px; box-shadow: 0 6px 18px rgba(16,35,63,.05); }
.cp-card .ic { font-size: 24px; margin-bottom: 12px; display: block; }
.cp-card h3 { font-size: 17.5px; margin: 0 0 8px; }
.cp-card p { font-size: 14.5px; line-height: 1.55; color: #4B5563; margin: 0; }
.cp-card .tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #C25E00; background: #F3F4F6; border-radius: 20px;
  padding: 4px 11px; margin-bottom: 12px; }

/* --- numbered steps --- */
.cp-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; counter-reset: step; }
.cp-step { display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border: 1px solid #e3e9f2; border-radius: 14px; padding: 22px 24px; }
.cp-step::before { counter-increment: step; content: counter(step);
  flex: 0 0 40px; height: 40px; border-radius: 50%; background: #C25E00; color: #fff;
  font-family: Montserrat, sans-serif; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center; }
.cp-step h3 { font-size: 17px; margin: 3px 0 6px; }
.cp-step p { font-size: 14.5px; line-height: 1.55; color: #4B5563; margin: 0; }

/* --- FAQ accordion (details/summary, no JS) --- */
.cp-faq { margin-top: 22px; }
.cp-faq details { border: 1px solid #e3e9f2; border-radius: 12px; margin-bottom: 12px; background: #fff; }
.cp-faq summary { cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: Montserrat, Inter, sans-serif; font-weight: 600; font-size: 16px; color: #111827;
  display: flex; justify-content: space-between; align-items: center; }
.cp-faq summary::-webkit-details-marker { display: none; }
.cp-faq summary::after { content: "+"; font-size: 22px; color: #C25E00; font-weight: 700; margin-left: 16px; }
.cp-faq details[open] summary::after { content: "\2013"; }
.cp-faq details[open] summary { color: #C25E00; }
.cp-faq .ans { padding: 0 22px 20px; font-size: 15px; line-height: 1.65; color: #44556c; }
.cp-faq .ans p { margin: 0 0 10px; }
.cp-faq-cat { font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: #C25E00; margin: 30px 0 12px; }

/* --- CTA --- */
.cp-cta { text-align: center; background: linear-gradient(160deg, #f6f8fb, #eef2f8);
  border: 1px solid #e3e9f2; border-radius: 16px; padding: 46px 30px; margin-top: 60px; }
.cp-cta h2 { margin: 0 0 10px; }
.cp-cta p { color: #374151; max-width: 620px; margin: 0 auto 24px; font-size: 16px; }
.cp-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cp-btn { display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-weight: 700; text-decoration: none; font-size: 15px; cursor: pointer;
  border: 1.5px solid transparent; font-family: Inter, sans-serif; }
.cp-btn.primary { background: #C25E00; color: #fff; }
.cp-btn.primary:hover { background: #A54E00; }
.cp-btn.ghost { border-color: #C25E00; color: #C25E00; background: #fff; }
.cp-btn.ghost:hover { background: #C25E00; color: #fff; }

/* --- blog --- */
.cp-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
.cp-post-card { display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid #e3e9f2; border-radius: 16px; padding: 28px;
  box-shadow: 0 6px 18px rgba(16,35,63,.05); transition: transform .12s, box-shadow .12s; }
.cp-post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16,35,63,.12); }
.cp-post-meta { font-size: 12.5px; color: #7a8aa0; margin-bottom: 10px; }
.cp-post-card h3 { font-size: 20px; margin: 0 0 10px; line-height: 1.25; }
.cp-post-card p { font-size: 14.5px; line-height: 1.6; color: #4B5563; margin: 0 0 14px; }
.cp-post-card .more { color: #C25E00; font-weight: 700; font-size: 14px; }

/* article body */
.cp-article { max-width: 760px; margin: 0 auto; }
.cp-article .cp-post-meta { text-align: center; }
.cp-article h1 { font-size: 36px; line-height: 1.15; text-align: center; margin: 6px 0 26px; }
.cp-article h2 { font-size: 24px; margin: 40px 0 12px; }
.cp-article p { font-size: 17px; line-height: 1.75; color: #2c3a4d; margin: 0 0 20px; }
.cp-article ul { margin: 0 0 20px; padding-left: 22px; }
.cp-article li { font-size: 17px; line-height: 1.7; color: #2c3a4d; margin-bottom: 8px; }
.cp-article blockquote { border-left: 4px solid #C25E00; margin: 24px 0; padding: 6px 0 6px 22px;
  font-size: 18px; font-style: italic; color: #33445a; }
.cp-article .backlink { display: inline-block; margin-bottom: 20px; color: #C25E00;
  font-weight: 700; font-size: 14px; text-decoration: none; }

.cp-note { font-size: 12.5px; color: #8595aa; text-align: center; margin-top: 36px; }

@media (max-width: 900px) {
  .cp-stats { grid-template-columns: repeat(2, 1fr); }
  .cp-cards, .cp-cards.two, .cp-posts { grid-template-columns: 1fr; }
  .cp-hero h1 { font-size: 32px; }
}

/* ── Shared public form styles (.sf-*) — used by /contact-sales and /contact.
   Dark-mode overrides live in theme-public-dark.css. ───────────────────────── */
.sf-form { margin-top: 26px; }
.sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
@media (max-width: 640px) { .sf-grid { grid-template-columns: 1fr; } }
.sf-field { display: flex; flex-direction: column; }
.sf-field.sf-span2 { grid-column: 1 / -1; }
.sf-field label { font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 5px; }
.sf-field label i { color: #c0392b; font-style: normal; }
.sf-field input, .sf-field select, .sf-field textarea {
  font-family: Inter, sans-serif; font-size: 14px; padding: 10px 12px;
  border: 1px solid #cdd9e8; border-radius: 9px; background: #fff; color: #111827;
  outline: none; width: 100%; }
.sf-field input:focus, .sf-field select:focus, .sf-field textarea:focus { border-color: #C25E00; }
.sf-field textarea { min-height: 130px; resize: vertical; }
.sf-err { color: #c0392b; font-size: 12px; margin-top: 4px; min-height: 14px; }
.sf-invalid { border-color: #c0392b !important; }
.sf-alert { background: #fdecea; border: 1px solid #f5c6cb; color: #8a1c22;
  border-radius: 9px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; }
.sf-actions { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sf-note { font-size: 12.5px; color: #6b7a90; margin-top: 12px; }
.sf-success { background: #eaf7ee; border: 1px solid #bfe3c9; color: #1c5230;
  border-radius: 12px; padding: 22px 24px; }
.sf-success h3 { margin: 0 0 6px; color: #1c5230; }
.sf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Secondary (exit) button */
.sf-btn-ghost { background: #fff; color: #C25E00; border: 1.5px solid #C25E00;
  border-radius: 9px; padding: 10px 18px; font-family: Inter, sans-serif;
  font-weight: 700; font-size: 14px; cursor: pointer; }
.sf-btn-ghost:hover { background: #F3F4F6; }

/* ── Exit-confirmation dialog (form-exit.js) ────────────────────────────────── */
.fx-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(6,16,29,0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.fx-box { background: #fff; border-radius: 14px; padding: 26px 28px; max-width: 420px;
  width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.fx-box h3 { margin: 0 0 8px; font-family: Montserrat, Inter, sans-serif; color: #111827; }
.fx-box p { margin: 0 0 20px; color: #374151; font-size: 14.5px; line-height: 1.5; }
.fx-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* Use-cases testimonial quote (color lives here, themed by dark override) */
.uc-quote { color: #33445a; }

/* ── Home dashboard gallery ──────────────────────────────────────────── */
#dashboard-gallery .gal-sub { margin: 26px 0 6px; font-size: 21px; color: #14243a; }
#dashboard-gallery .gal-desc { color: #33445a; }
.gal-row { display: grid; gap: 18px; margin: 18px 0 8px; }
.gal-3 { grid-template-columns: repeat(3, 1fr); }
.gal-2 { grid-template-columns: repeat(2, 1fr); }
.gal-1 { grid-template-columns: 1fr; }
.gal-item {
  margin: 0;
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20, 36, 58, 0.06);
  cursor: zoom-in;
  transition: box-shadow 0.15s, transform 0.15s;
}
.gal-item:hover { box-shadow: 0 6px 20px rgba(20, 36, 58, 0.14); transform: translateY(-2px); }
.gal-item img { display: block; width: 100%; height: auto; }
.gal-tall img { max-height: 420px; object-fit: cover; object-position: top; }
.gal-item figcaption {
  padding: 10px 14px;
  font-size: 14.5px;
  color: #33445a;
  border-top: 1px solid #e7edf5;
  background: #f8fafc;
}
.gal-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-right: 7px;
  border-radius: 50%; background: #C25E00; color: #fff;
  font-size: 12.5px; font-weight: 700;
}
.gal-hint { font-size: 13.5px; color: #6b7a8f; margin-top: 4px; }
/* Lightbox */
.gal-lightbox {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(10, 18, 30, 0.88);
  display: none; overflow: auto; padding: 4vh 4vw;
  cursor: zoom-out;
}
.gal-lightbox.open { display: block; }
.gal-lightbox img {
  display: block; margin: 0 auto; max-width: 100%;
  border-radius: 8px; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
@media (max-width: 900px) {
  .gal-3, .gal-2 { grid-template-columns: 1fr; }
}

/* Theme-matched gallery screenshots: light set by default, dark set when
   the site is in dark mode. Hidden lazy images do not load until shown. */
.gal-item .gal-dark { display: none; }
:root[data-theme="dark"] .gal-item .gal-dark { display: block; }
:root[data-theme="dark"] .gal-item .gal-light { display: none; }
