/* Probante content site: editorial layer.
   Independent of the CRA app stylesheet on purpose: these pages are served as
   static files and must render correctly without the app bundle. */

:root {
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --brand-soft: #eef2ff;
  --ink: #14161f;
  --ink-2: #3f4457;
  --muted: #6b7183;
  --line: #e4e6ee;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --warn-bg: #fff8ec;
  --warn-line: #f0c987;
  --ok-bg: #eefbf3;
  --ok-line: #86d6a8;
  --radius: 12px;
  --wrap: 1120px;
  --measure: 45rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 22px; height: 22px; color: var(--brand); }
.site-nav { display: flex; gap: 22px; margin-right: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--brand); }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 9px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { color: var(--ink-2); }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Article */
.main { padding: 36px 24px 72px; }
.doc { max-width: var(--measure); margin: 0 auto; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--brand); margin: 0 0 10px; }
.doc h1 { font-size: 2.45rem; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 16px; }
.standfirst { font-size: 1.18rem; color: var(--ink-2); line-height: 1.6; margin: 0 0 18px; }
.meta { font-size: 13.5px; color: var(--muted); margin: 0 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }

.doc-body h2 { font-size: 1.6rem; letter-spacing: -.02em; margin: 46px 0 14px; scroll-margin-top: 84px; }
.doc-body h3 { font-size: 1.2rem; margin: 32px 0 10px; scroll-margin-top: 84px; }
.doc-body p { margin: 0 0 17px; }
.doc-body ul, .doc-body ol { margin: 0 0 20px; padding-left: 22px; }
.doc-body li { margin-bottom: 9px; }
.lead { font-size: 1.1rem; color: var(--ink-2); }

/* Answer-first block: the passage answer engines are meant to lift. */
.answer { background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin: 0 0 30px; }
.answer p { margin: 0; font-size: 1.06rem; line-height: 1.62; color: #1e2140; }

/* TOC */
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; margin: 0 0 34px; }
.toc-title { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 15px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 26px; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 600; font-size: 13.5px; letter-spacing: .01em; }
tbody tr:last-child td { border-bottom: 0; }

/* Callouts */
.callout { border-radius: var(--radius); padding: 18px 22px; margin: 0 0 26px; border: 1px solid var(--line); background: var(--bg-soft); }
.callout p { margin: 0 0 10px; font-size: 15.5px; }
.callout p:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.proof { background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 26px; }
.proof-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #1d7a4a; margin: 0 0 8px; }
.proof p { margin: 0 0 10px; font-size: 15.5px; }
.proof p:last-child { margin-bottom: 0; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 26px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 18px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.steps strong { display: block; margin-bottom: 3px; }
.steps span { color: var(--ink-2); font-size: 15.5px; }

/* Inline CTA */
.inline-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 30px 0; }
.inline-cta p { margin: 0; flex: 1 1 260px; font-weight: 500; }

/* FAQ */
.faq { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--line); }
.faq h2 { font-size: 1.6rem; margin: 0 0 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; 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-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq-a { padding: 0 0 16px; color: var(--ink-2); }
.faq-a p { margin: 0; }

/* End CTA */
.end-cta { margin-top: 56px; background: linear-gradient(135deg, #1e1b4b, #4338ca); color: #fff; border-radius: 16px; padding: 40px; text-align: center; }
.end-cta h2 { margin: 0 0 12px; font-size: 1.65rem; letter-spacing: -.02em; }
.end-cta p { margin: 0 0 22px; color: #d5d3f0; }
.end-cta .btn-primary { background: #fff; color: var(--brand-dark); }
.end-cta .btn-primary:hover { background: #eceafd; color: var(--brand-dark); }
.end-cta-note { font-size: 13.5px; margin: 16px 0 0 !important; color: #b9b5e8 !important; }

/* Related */
.related { margin-top: 52px; }
.related h2 { font-size: 1.3rem; margin: 0 0 16px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.related a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; text-decoration: none; }
.related a:hover { border-color: var(--brand); background: var(--bg-soft); }
.rel-title { display: block; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.rel-desc { display: block; font-size: 14.5px; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 30px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.plan-featured { border-color: var(--brand); box-shadow: 0 10px 34px rgba(79,70,229,.13); }
.plan-badge { position: absolute; top: -11px; left: 22px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.plan-name { font-weight: 700; margin: 0 0 6px; }
.plan-price { font-size: 1.5rem; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.plan-unit { font-size: 14px; color: var(--brand-dark); margin: 2px 0 0; font-weight: 600; }
.plan-pitch { font-size: 14.5px; color: var(--ink-2); margin: 12px 0; }
.plan-limits { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 20px; font-size: 14.5px; }
.plan-features li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.plan .btn { margin-top: auto; }

/* Diagnostic */
.diag { margin: 0 0 34px; }
.diag-card { border: 1px solid var(--line); border-radius: 16px; padding: 32px; background: #fff; box-shadow: 0 6px 26px rgba(20,22,31,.05); }
.diag-loading { color: var(--muted); }
.diag-progress { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.diag-progress span { display: block; height: 100%; background: var(--brand); transition: width .25s ease; }
.diag-step { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin: 0 0 10px; }
.diag-q { font-size: 1.32rem; line-height: 1.4; margin: 0 0 10px; letter-spacing: -.015em; }
.diag-help { font-size: 14.5px; color: var(--muted); margin: 0 0 22px; }
.diag-flag { display: inline-block; background: #fee2e2; color: #b02020; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; margin-left: 8px; text-transform: uppercase; }
.diag-flag-soft { background: var(--warn-bg); color: #96650d; }
.diag-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.diag-choices-lg { flex-direction: column; }
.diag-choice { text-align: left; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15.5px; font-family: inherit; color: var(--ink); cursor: pointer; font-weight: 500; }
.diag-choice:hover { border-color: var(--brand); background: var(--brand-soft); }
.diag-choice.is-on { border-color: var(--brand); background: var(--brand); color: #fff; }
.diag-choice-skip { color: var(--muted); font-weight: 400; }
.diag-profile-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.diag-profile-row p { margin: 0 0 10px; font-weight: 500; }
.diag-profile { margin-bottom: 26px; }
.diag-back { background: none; border: 0; color: var(--muted); font-family: inherit; font-size: 14px; cursor: pointer; padding: 18px 0 0; }
.diag-back:hover { color: var(--brand); }
.diag-score { display: flex; flex-direction: column; align-items: center; padding: 22px; border-radius: 12px; margin-bottom: 20px; }
.diag-score strong { font-size: 3rem; line-height: 1; letter-spacing: -.03em; }
.diag-score span { font-size: 14px; margin-top: 6px; }
.diag-good { background: var(--ok-bg); color: #14663c; }
.diag-mid { background: var(--warn-bg); color: #8a5d09; }
.diag-bad { background: #fee2e2; color: #9b1c1c; }
.diag-verdict { font-size: 1.06rem; font-weight: 500; margin: 0 0 26px; }
.diag-gaps-title { font-size: 1.25rem; margin: 0 0 16px; }
.diag-gaps { list-style: none; padding: 0; margin: 0 0 30px; }
.diag-gaps li { border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 0 10px 10px 0; padding: 18px 20px; margin-bottom: 12px; }
.diag-gaps li.is-critical { border-left-color: #d94a4a; }
.gap-head { margin: 0 0 4px; display: flex; align-items: center; flex-wrap: wrap; }
.gap-ind { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); }
.gap-title { font-weight: 600; margin: 0 0 10px; }
.gap-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; font-weight: 600; }
.gap-proofs { margin: 0 0 12px; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); }
.gap-proofs li { border: 0; padding: 0; margin: 0 0 5px; border-radius: 0; }
.gap-link { font-size: 14.5px; font-weight: 600; text-decoration: none; }
.gap-link:hover { text-decoration: underline; }
.diag-clear { background: var(--ok-bg); border-radius: 10px; padding: 18px; margin: 0 0 26px; }
.diag-capture { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.diag-capture h2 { font-size: 1.2rem; margin: 0 0 8px; }
.diag-capture p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 16px; }
.diag-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.diag-fields .form-control { flex: 1 1 200px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; font-family: inherit; font-size: 15px; }
.diag-fields .form-control:focus { outline: none; border-color: var(--brand); }
.diag-legal { font-size: 12.5px !important; color: var(--muted) !important; margin: 14px 0 0 !important; }
.diag-form-msg { font-size: 14px; margin: 10px 0 0 !important; }
.diag-capture.is-done { background: var(--ok-bg); border-color: var(--ok-line); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 48px 0 0; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding-bottom: 36px; }
.brand-line { font-weight: 700; font-size: 17px; margin: 0 0 8px; }
.footer-brand p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 16px; max-width: 30ch; }
.footer-title { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--brand); text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--line); padding: 20px 24px; }
.footer-legal p { font-size: 13px; color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc h1 { font-size: 1.95rem; }
  .main { padding-top: 26px; }
  .diag-card { padding: 22px; }
  .end-cta { padding: 30px 22px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
}

/* ---------------------------------------------------------------------------
   Home page. Served at "/" from home.html by the marketing nginx server block.
   --------------------------------------------------------------------------- */
.hero { padding: 40px 0 20px; }
.hero-text { max-width: 46rem; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.35rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 20px; }
.hero-sub { font-size: 1.18rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 28px; max-width: 40rem; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-trust { font-size: 14px; color: var(--muted); margin: 0; }

.hband { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; margin: 40px 0 12px; }
.hband-mark { font-size: 1.28rem; font-weight: 700; color: var(--brand-dark); margin: 0; letter-spacing: -.02em; white-space: nowrap; }
.hband p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.hband p + p { margin-top: 7px; }
.hband a { color: var(--brand-dark); font-weight: 600; }

.hsec { margin: 64px 0 0; }
.hsec > h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.025em; margin: 0 0 20px; max-width: 24ch; line-height: 1.15; }
.hsec-body { max-width: var(--measure); }
.hsec-body p { margin: 0 0 16px; }
.hsec-more { margin: 18px 0 0; font-size: 15px; }
.hsec-more a { font-weight: 600; text-decoration: none; }
.hsec-more a:hover { text-decoration: underline; }

.hgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 18px; }
.hcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg-soft); }
.hcard-t { font-weight: 700; margin: 0 0 9px; font-size: 1.02rem; letter-spacing: -.01em; }
.hcard-b { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.58; }


.hero + .hband { margin-top: 24px; }
.hsec + .faq, .hsec + .end-cta { margin-top: 64px; }
@media (max-width: 700px) {
  .hband { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------------------------------------------------------------------------
   Scope filter (Qualiopi V10 pillar). Hiding is purely visual: every indicator
   stays in the DOM, and the count of hidden ones stays on screen.
   --------------------------------------------------------------------------- */
.scope-off { display: none !important; }
.scopefilter { border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-soft); padding: 18px 22px; margin: 0 0 24px; }
.scopefilter-q { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin: 0 0 12px; }
.scopefilter-rows { display: flex; flex-direction: column; gap: 10px; }
.scopefilter-opt { display: flex; align-items: center; gap: 10px; font-size: 15.5px; cursor: pointer; }
.scopefilter-opt input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; margin: 0; }
.scopefilter-state { margin: 14px 0 0; font-size: 14.5px; line-height: 1.55; }
.scope-ok { color: var(--muted); }
.scope-hidden { color: var(--ink-2); }
.scope-hidden strong { color: var(--ink); }
.scopefilter-state button { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.scopefilter-state button:hover { color: var(--brand); }

/* ---------------------------------------------------------------------------
   Billing period toggle and pricing grid.
   The three plans stay on one row on desktop; the grid is allowed to run wider
   than the prose measure so the cards are not squeezed.
   --------------------------------------------------------------------------- */
.billing { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg-soft); margin: 0 0 20px; }
.billing-opt { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); padding: 8px 18px; border-radius: 99px; cursor: pointer; }
.billing-opt:hover { color: var(--ink); }
.billing-opt.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(20,22,31,.1); }
.billing-save { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: #fff; background: #16a34a; padding: 2px 7px; border-radius: 99px; }

.plan-per { font-size: 14.5px; font-weight: 500; color: var(--muted); margin-left: 5px; }
.plan-billnote { font-size: 13px; color: var(--muted); margin: 5px 0 0; }
.plan-save { color: #15803d; font-weight: 600; }

@media (min-width: 1024px) {
  .doc-body .billing, .doc-body .plans { margin-left: -6rem; margin-right: -6rem; }
  .doc-body .billing { margin-left: -6rem; }
}
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .doc-body .billing, .doc-body .plans { margin-left: 0; margin-right: 0; }
}
