/* HubSpot CRM Dependability Benchmark — styles for /crm-benchmark/ (uses site.css tokens).
   The full report is a PDF built on the server (site/lib/benchmark-pdf.php), not a page. */

/* ---------- Shared score colours ---------- */
:root {
  --bm-band-1: #FF5577;
  --bm-band-2: #FFD23F;
  --bm-band-3: #9DB7F5;
  --bm-band-4: #4ADE80;
  --bm-band-5: #4ADE80;
  --bm-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Landing ---------- */
.bm-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.bm-hero h1 { margin: 18px 0 0; max-width: 860px; font-size: clamp(36px, 4.8vw, 60px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; color: #FFFFFF; }
.bm-lede { margin: 22px 0 0; max-width: 640px; font-size: 19px; line-height: 1.5; color: var(--text-body); }
.bm-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 30px; }
.bm-cta-row .btn { min-height: 52px; padding: 0 26px; font-size: 17px; }
.bm-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.bm-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--text); }
.bm-facts svg { flex: none; color: var(--accent); }
.bm-note { margin: 22px 0 0; max-width: 640px; font-size: 15px; color: var(--text-muted); }

.bm-dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.bm-dims li { padding: 22px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.bm-dims .bm-dim-weight { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bm-dims h3 { margin: 8px 0 6px; font-size: 19px; line-height: 1.3; color: #FFFFFF; }
.bm-dims p { margin: 0; font-size: 16px; color: var(--text-body); }

.bm-gets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--line-strong); }
.bm-gets li { padding: 24px 0 0; }
.bm-gets span { font-size: 15px; font-weight: 700; color: var(--accent); }
.bm-gets h3 { margin: 8px 0 0; font-size: 20px; line-height: 1.3; color: #FFFFFF; }
.bm-gets p { margin: 8px 0 0; font-size: 16px; color: var(--text-body); }

/* ---------- Assessment shell ---------- */
.bm-app { padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); }
.bm-shell { max-width: 820px; margin: 0 auto; }
.bm-shell.is-wide { max-width: 1040px; }
.bm-step { animation: bm-rise .45s var(--bm-ease) both; }
.bm-step h2 { margin: 10px 0 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.02em; color: #FFFFFF; }
.bm-step h2:focus { outline: none; }
.bm-step-intro { margin: 10px 0 0; font-size: 17px; color: var(--text-body); }

.bm-progress { position: sticky; top: 72px; z-index: 20; margin: 0 0 28px; padding: 14px 0 12px; background: linear-gradient(var(--bg) 78%, rgba(9, 9, 9, 0)); }
.bm-progress-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; font-weight: 700; color: var(--text-muted); }
.bm-progress-meta strong { color: #FFFFFF; }
.bm-progress-track { position: relative; height: 8px; margin-top: 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.bm-progress-fill { position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(90deg, #CCCCCC, var(--accent)); transform-origin: left center; transform: scaleX(0); transition: transform .6s var(--bm-ease); }
.bm-progress-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-100%); animation: bm-sheen 2.4s ease-in-out infinite; }
.bm-progress-steps { display: flex; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.bm-progress-steps li { flex: 1; height: 3px; border-radius: 4px; background: var(--line); transition: background-color .4s; }
.bm-progress-steps li.is-done { background: var(--accent); }
.bm-progress-steps li.is-current { background: #FFFFFF; }

/* ---------- Questions ---------- */
.bm-q { margin: 28px 0 0; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-1); min-width: 0; }
.bm-q legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; font-size: 19px; line-height: 1.4; font-weight: 700; color: #FFFFFF; }
.bm-q legend + * { clear: both; }
.bm-q-num { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bm-q-hint { margin: 0 0 4px; font-size: 15px; color: var(--text-muted); }
.bm-q.has-error { border-color: var(--error); }
.bm-q-error { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--error); }
.bm-options { display: grid; gap: 10px; margin-top: 14px; }
.bm-options.is-compact { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.bm-opt { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--bg); font-size: 16px; line-height: 1.45; color: var(--text); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.bm-opt:hover { border-color: var(--accent); color: #FFFFFF; }
.bm-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bm-opt-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--field-border); transition: border-color .2s, background-color .2s; }
.bm-opt.is-check .bm-opt-mark { border-radius: 6px; }
.bm-opt-mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-ink); transform: scale(0); transition: transform .25s var(--bm-ease); }
.bm-opt.is-check .bm-opt-mark::after { width: 11px; height: 6px; border-radius: 0; background: none; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: rotate(-45deg) scale(0); margin-top: -3px; }
.bm-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: #FFFFFF; }
.bm-opt:has(input:checked) .bm-opt-mark { border-color: var(--accent); background: var(--accent); }
.bm-opt:has(input:checked) .bm-opt-mark::after { transform: scale(1); }
.bm-opt.is-check:has(input:checked) .bm-opt-mark::after { transform: rotate(-45deg) scale(1); }
.bm-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.bm-opt.is-alt { border-style: dashed; color: var(--text-muted); }
.bm-alt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; margin-top: 10px; }

.bm-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; }
.bm-nav .btn { min-height: 52px; padding: 0 26px; font-size: 17px; }
.bm-nav-note { font-size: 14px; color: var(--text-muted); }

/* ---------- Results ---------- */
.bm-result-head { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px 48px; align-items: center; padding: 32px; border-radius: 20px; background: var(--deep); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.bm-dial { position: relative; width: 100%; max-width: 280px; margin: 0 auto; aspect-ratio: 1; }
.bm-dial svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.bm-dial-track { fill: none; stroke: var(--card); stroke-width: 14; }
.bm-dial-value { fill: none; stroke: var(--bm-colour, var(--accent)); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--bm-ease); }
.bm-dial-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.bm-dial-num { font-size: clamp(56px, 9vw, 76px); line-height: 1; font-weight: 700; letter-spacing: -.03em; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.bm-dial-of { margin-top: 4px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.bm-result-head h2 { margin: 12px 0 0; }
.bm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); font-size: 14px; font-weight: 700; color: #FFFFFF; }
.bm-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--bm-colour, var(--text-muted)); }
.bm-summary { margin: 16px 0 0; font-size: 18px; line-height: 1.5; color: var(--text-body); }
.bm-confidence { margin: 12px 0 0; font-size: 15px; color: var(--text-muted); }

.bm-block { margin-top: 48px; }
.bm-block > h3 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; letter-spacing: -.01em; color: #FFFFFF; }
.bm-block > p.bm-block-note { margin: 0 0 20px; font-size: 16px; color: var(--text-muted); }

.bm-bars { display: grid; gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; }
.bm-bar { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 44px; gap: 14px; align-items: center; }
.bm-bar-label { font-size: 16px; font-weight: 600; color: var(--text); }
.bm-bar-track { height: 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.bm-bar-fill { height: 100%; border-radius: 999px; background: var(--bm-colour, var(--accent)); transform-origin: left center; transform: scaleX(0); transition: transform 1.1s var(--bm-ease); }
.bm-bar-value { text-align: right; font-size: 17px; font-weight: 700; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.bm-bar.is-na .bm-bar-label, .bm-bar.is-na .bm-bar-value { color: var(--text-muted); }

.bm-critical { padding: 24px; border-radius: 20px; background: #2A1218; border: 1px solid var(--error); }
.bm-critical > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 22px; color: #FFD6DE; }
.bm-critical > p { margin: 0 0 16px; color: #F2B8C4; font-size: 16px; }
.bm-critical .bm-finding { background: rgba(0, 0, 0, .55); border-color: rgba(255, 85, 119, .4); }

.bm-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.bm-pair > div { padding: 22px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); }
.bm-pair h4 { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.bm-pair ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bm-pair li { display: flex; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 600; color: #FFFFFF; }
.bm-pair li span:last-child { font-variant-numeric: tabular-nums; color: var(--bm-band-4); }
.bm-pair .is-weak li span:last-child { color: var(--bm-band-2); }

.bm-findings { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: bm-finding; }
.bm-finding { position: relative; padding: 22px 22px 22px 66px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); counter-increment: bm-finding; }
.bm-finding::before { content: counter(bm-finding); position: absolute; left: 20px; top: 20px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); border: 1px solid #333333; font-size: 15px; font-weight: 700; color: var(--accent); }
.bm-finding h4 { margin: 0; font-size: 19px; line-height: 1.35; color: #FFFFFF; }
.bm-finding-why { margin: 8px 0 0; font-size: 16px; color: var(--text-body); }
.bm-finding-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.bm-tag { padding: 2px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-strong); font-size: 13px; font-weight: 700; color: var(--text-muted); }
.bm-tag.is-critical { border-color: var(--error); color: #FFD6DE; }
.bm-finding ol { margin: 12px 0 0; padding-left: 20px; font-size: 16px; color: var(--text-body); }
.bm-finding li + li { margin-top: 6px; }

.bm-calc { margin-top: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); }
.bm-calc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0 22px; font-size: 17px; font-weight: 700; color: #FFFFFF; cursor: pointer; list-style: none; }
.bm-calc summary::-webkit-details-marker { display: none; }
.bm-calc summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .25s var(--bm-ease); }
.bm-calc[open] summary::after { transform: rotate(45deg); }
.bm-calc-body { padding: 0 22px 22px; font-size: 16px; color: var(--text-body); }
.bm-calc-body dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; margin: 0 0 14px; }
.bm-calc-body dt { color: var(--text-muted); }
.bm-calc-body dd { margin: 0; font-weight: 700; color: #FFFFFF; text-align: right; font-variant-numeric: tabular-nums; }
.bm-calc-body p { margin: 0 0 10px; }

.bm-report-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px 48px; padding: 32px; border-radius: 20px; background: var(--bg-alt); border: 1px solid var(--line); }
.bm-report-card h3 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.01em; color: #FFFFFF; }
.bm-report-card ul { margin: 16px 0 0; padding-left: 20px; color: var(--text-body); font-size: 16px; }
.bm-report-card li + li { margin-top: 6px; }
.bm-form { display: flex; flex-direction: column; gap: 16px; }
.bm-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text); cursor: pointer; }
.bm-consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.bm-form-note { margin: 0; font-size: 14px; color: var(--text-muted); }
.bm-form-alert { padding: 14px 16px; border-radius: 10px; background: #2A1218; border: 1px solid var(--error); color: #FFD6DE; font-size: 16px; }
.bm-form-alert a { color: #FFD6DE; }
.bm-sent { padding: 24px; border-radius: 15px; background: var(--accent-soft); border: 1px solid #333333; }
.bm-sent p { margin: 0 0 14px; color: #FFF1E0; }
.bm-sent strong { color: #FFFFFF; font-size: 20px; }

.bm-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px; border-radius: 15px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--card); }
.bm-offer h3 { margin: 0; font-size: 21px; color: #FFFFFF; }
.bm-offer p { margin: 6px 0 0; max-width: 620px; font-size: 16px; color: var(--text-body); }
.bm-disclaimer { margin: 40px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.bm-restart { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; text-decoration: underline; }

/* ---------- Generating screen ---------- */
.bm-gen { width: min(440px, calc(100vw - 32px)); padding: 36px 32px 32px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--card); color: var(--text); text-align: center; box-shadow: var(--shadow-2); }
.bm-gen::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.bm-gen[open] { animation: bm-rise .35s var(--bm-ease) both; }
.bm-gen h3 { margin: 22px 0 0; font-size: 24px; line-height: 1.25; color: #FFFFFF; }
.bm-gen-status { margin: 10px 0 0; min-height: 26px; font-size: 17px; color: var(--accent); }
.bm-gen-note { margin: 14px 0 0; font-size: 15px; color: var(--text-muted); }
.bm-spinner { position: relative; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--accent); animation: bm-spin .9s linear infinite; }
.bm-gen.is-ready .bm-spinner { animation: none; border-color: var(--accent); background: var(--accent-soft); }
.bm-gen.is-ready .bm-spinner::after { content: ""; position: absolute; left: 50%; top: 46%; width: 22px; height: 11px; border-left: 4px solid var(--accent); border-bottom: 4px solid var(--accent); transform: translate(-50%, -50%) rotate(-45deg); animation: bm-pop .35s var(--bm-ease) both; }

/* ---------- Thank-you page ---------- */
#bm-thanks h1 { margin: 12px 0 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.025em; color: #FFFFFF; }
#bm-thanks h1:focus { outline: none; }
#bm-thanks .bm-step-intro { max-width: 720px; font-size: 19px; }
.bm-download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; padding: 20px 24px; border-radius: 15px; background: var(--accent-soft); border: 1px solid #333333; }
.bm-download-name { margin: 0; font-size: 17px; font-weight: 700; color: #FFFFFF; overflow-wrap: anywhere; }
.bm-download-note { margin: 4px 0 0; font-size: 15px; color: #FED7AA; }
.bm-ticks { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.bm-ticks li { position: relative; padding: 14px 18px 14px 46px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); font-size: 17px; font-weight: 600; color: #FFFFFF; }
.bm-ticks li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.bm-next { padding: clamp(24px, 4vw, 40px); border-radius: 20px; background: var(--deep); border: 1px solid var(--line); border-left: 4px solid var(--accent); box-shadow: var(--shadow-2); }
.bm-next h2 { margin: 12px 0 16px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.02em; color: #FFFFFF; }
.bm-next p:not(.kicker) { margin: 0 0 14px; max-width: 760px; font-size: 17px; color: var(--text-body); }
.bm-next .bm-cta-row { margin-top: 24px; }
.bm-next p.bm-next-note { margin: 18px 0 0; font-size: 15px; color: var(--text-muted); }
.bm-disclaimer.bm-tight { margin-top: 12px; }
.bm-thanks-empty .bm-cta-row { margin-top: 28px; }

@keyframes bm-spin { to { transform: rotate(360deg); } }
@keyframes bm-pop { from { opacity: 0; transform: translate(-50%, -50%) rotate(-45deg) scale(.4); } to { opacity: 1; transform: translate(-50%, -50%) rotate(-45deg) scale(1); } }
@keyframes bm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bm-sheen { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

@media (max-width: 760px) {
  .bm-result-head { grid-template-columns: 1fr; padding: 24px 20px; text-align: center; }
  .bm-result-head .kicker, .bm-chips { justify-content: center; }
  .bm-bar { grid-template-columns: minmax(0, 1fr) 44px; }
  .bm-bar-track { grid-column: 1 / -1; grid-row: 2; }
  .bm-q { padding: 20px 16px; }
  .bm-finding { padding: 62px 18px 20px; }
  .bm-finding::before { left: 18px; top: 18px; }
  .bm-report-card { padding: 24px 20px; }
  .bm-progress { top: 72px; }
}
@media (max-width: 480px) {
  .bm-nav .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bm-step { animation: none; }
  .bm-progress-fill, .bm-bar-fill, .bm-dial-value, .bm-opt-mark::after { transition: none; }
  .bm-progress-fill::after { animation: none; display: none; }
  .bm-spinner { animation-duration: 2.4s; }
  .bm-gen[open], .bm-gen.is-ready .bm-spinner::after { animation: none; }
}

/* Framer-style system: tags are small rounded chips, and the page headings share the display face. */
.bm-chip, .bm-tag, .bm-facts li { border-radius: 6px; }
.bm-hero h1, #bm-thanks h1, .bm-step h2, .bm-next h2, .bm-dial-num { font-family: var(--display); font-weight: 600; letter-spacing: -.05em; }
.bm-next { border-left: 0; border-radius: 30px; }
