/*
 * bpmlc.com (Phase 10 Step 14, C55): the owner's approved design (docs/design/website/project), rebuilt with classes so
 * the pages need no inline style or script (the site sends a strict content security policy). Colours are the Midnight
 * Violet light theme (docs/design/system/project/tokens.json). Fonts are the app's own self-hosted files (no Google Fonts).
 */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --paper: #F6F3FC; --surface: #FFFFFF; --surface-2: #F0EAFB; --line: #DCD2EE;
  --ink: #1A1033; --ink-soft: #4A4060; --ink-faint: #5E5675;
  --accent: #6B3FD4; --accent-ink: #5A2FC0; --accent-soft: #EDE4FC; --good: #1F7A4D; --l4: #7C55DE;
  --night: #1A1033; --night-ink: #F4F2F7; --night-soft: #C6C2CE; --night-kicker: #D9C9FF;
  --shadow: 0 1px 2px rgba(26, 16, 51, .06), 0 8px 24px rgba(26, 16, 51, .06);
  --sans: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --head: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
img { max-width: 100%; }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 1100px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.kicker-night { color: var(--night-kicker); }
.lede { color: var(--ink-soft); font-size: 16px; }
.section-title { font-size: clamp(30px, 3.5vw, 42px); line-height: 1.1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 14px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { color: #FFFFFF; background: var(--accent-ink); }
.btn-lg { min-height: 48px; padding: 0 26px; font-size: 15px; }
.btn-quiet { border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); }
.btn-quiet:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.link-strong { font-size: 15px; font-weight: 700; color: var(--accent-ink); text-decoration: none; padding: 12px 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(246, 243, 252, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; }
.brand img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 320px; font-size: 14px; font-weight: 600; }
.nav-links a { color: var(--ink-soft); text-decoration: none; padding: 10px 0; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-signin { font-size: 14px; font-weight: 700; color: var(--accent-ink); text-decoration: none; padding: 10px 2px; }
.page-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.back { font-size: 14px; font-weight: 700; color: var(--accent-ink); text-decoration: none; padding: 12px 2px; }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 460px; min-width: 0; gap: 24px; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; font-weight: 700; }
.hero-sub { font-family: var(--head); font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--ink); max-width: 560px; }
.hero-body { font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 560px; }
.hero-motto { font-size: 17px; line-height: 1.4; font-weight: 700; color: var(--accent-ink); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; }
.hero-note { font-size: 13.5px; color: var(--ink-faint); }

/* Trace chain figure */
.chain { flex: 1 1 420px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; margin: 0; }
.chain-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.chain-item { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; font-size: 14px; }
.chain-source { background: var(--surface-2); border: 0; flex-direction: column; gap: 6px; }
.chain-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 600; color: var(--ink-faint); }
.chain-row { align-items: center; }
.chain-req { flex-direction: column; gap: 6px; }
.chain-req > div { display: flex; gap: 10px; align-items: baseline; }
.chain-link { width: 2px; height: 14px; background: var(--line); margin-left: 28px; }
.badge-l4 { font-family: var(--mono); font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 3px; background: var(--l4); color: #FFFFFF; }
.ref { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent-ink); white-space: nowrap; }
.mono { font-family: var(--mono); }
.strong { font-weight: 600; }
.aside { margin-left: auto; font-size: 12px; color: var(--ink-faint); }
.verifies { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--good); }
.rule-chip { background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.chain-note { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* Audiences */
.audiences { padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.card-analyst { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.card-analyst h2 { font-size: 28px; line-height: 1.2; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 20px; font-size: 14px; color: var(--ink); }
.ticks li { display: flex; gap: 8px; }
.ticks span { color: var(--accent); font-weight: 700; }
.card-night { background: var(--night); border: 0; color: var(--night-ink); }
.card-team { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.card-team h2 { font-size: 22px; line-height: 1.25; color: var(--night-ink); }
.night-body { color: var(--night-soft); font-size: 14px; }

/* How it works */
.section { padding-top: 88px; padding-bottom: 88px; }
.lifecycle { gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #FFFFFF; font-size: 13px; font-weight: 700; }
.step h3 { font-size: 18px; }
.small { font-size: 14px; color: var(--ink-soft); }

/* Traceability */
.trace { display: flex; flex-wrap: wrap; gap: 48px; }
.trace-head { flex: 1 1 340px; min-width: 0; gap: 14px; }
.principles { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.principle { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.principle h3 { font-size: 17px; }

/* Your AI */
.ai-wrap { padding-bottom: 88px; }
.ai { background: var(--night); color: var(--night-ink); border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 40px; }
.ai-head { flex: 1 1 340px; min-width: 0; gap: 14px; }
.ai-head h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; color: var(--night-ink); }
.ai-head p.night-body { font-size: 16px; }
.ai-points { flex: 1 1 340px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ai-points li { border: 1px solid rgba(165, 112, 254, 0.35); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.ai-points b { color: var(--night-ink); }
.ai-points span { font-size: 14px; color: var(--night-soft); }

/* Plans */
.plans-section { gap: 40px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.plan { border-radius: 24px; display: flex; flex-direction: column; gap: 16px; }
.plan-main { border: 2px solid var(--accent); padding: 31px; background: var(--surface); box-shadow: var(--shadow); }
.plan-team { border: 1px solid var(--line); padding: 32px; background: var(--paper); }
.plan h3 { font-size: 22px; }
.plan-name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill { font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.price { font-family: var(--head); font-size: 30px; font-weight: 700; }
.price span { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-faint); }
.plan .btn { align-self: flex-start; }
.fine { font-size: 13px; color: var(--ink-faint); }

/* Request a demo */
.request { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.request-head { flex: 1 1 340px; min-width: 0; gap: 14px; }
.request-head .link-strong { align-self: flex-start; padding: 10px 0; }
.request-card { flex: 1 1 440px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.request-card p { font-size: 12.5px; color: var(--ink-faint); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 32px; padding-bottom: 32px; }
.footer-row img { width: 36px; height: 36px; display: block; }
.footer-row > p { font-size: 13px; color: var(--ink-faint); flex: 1 1 240px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 13px; font-weight: 600; }
.footer-links a { color: var(--ink-soft); padding: 10px 0; }

/* Terms */
.terms-top { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.terms-top h1 { font-size: clamp(34px, 4.5vw, 48px); line-height: 1.1; }
.terms-meta { font-size: 14px; color: var(--ink-faint); }
.terms-note { margin-top: 8px; align-self: flex-start; background: var(--accent-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.terms-body { padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.toc { flex: 1 1 240px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.toc p { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 8px 0; color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--accent-ink); }
.terms-text { flex: 999 1 560px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); font-size: 16px; line-height: 1.6; }
.terms-text section { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; scroll-margin-top: 24px; }
.terms-text section:last-child { margin-bottom: 0; }
.terms-text h2 { font-size: 20px; line-height: 1.3; }
.terms-text p, .terms-text li { color: var(--ink-soft); }
.terms-text ul, .terms-text ol { margin: 0; padding-left: 22px; }
.terms-text strong { color: var(--ink); }
.terms-intro { margin-bottom: 36px; display: flex; flex-direction: column; gap: 10px; }
.page-footer .footer-row { padding-top: 22px; padding-bottom: 22px; gap: 8px 28px; }
