/* Sales Physician: one stylesheet for the website, the assessment and the reports. */

:root {
  --navy: #13294b;
  --navy-2: #1f3d6b;
  --orange: #e8742c;
  --orange-dark: #c95d1a;
  --ink: #1c2633;
  --muted: #5a6677;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-alt: #f3f5f8;
  --healthy: #2e7d4f;
  --developing: #8fbf5a;
  --at-risk: #f0b43c;
  --critical: #d2513f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(19, 41, 75, .06), 0 4px 16px rgba(19, 41, 75, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
body.app { background: var(--bg-alt); }
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }
.muted, .hint { color: var(--muted); }
.hint { display: block; font-size: .85rem; font-weight: normal; margin-top: 4px; }
.small { font-size: .85rem; }

/* Header */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 5; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; line-height: 1.1; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand:hover { color: #fff; }
.brand .tm { color: var(--orange); }
.brand small { display: block; font-weight: 400; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-top: 4px; font-weight: 600; }
.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav a { color: #dfe7f2; text-decoration: none; white-space: nowrap; padding: 8px 8px; border-radius: 6px; font-size: .95rem; }
.mainnav a:hover, .mainnav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.mainnav .btn { color: #fff; margin-left: 8px; }
.applabel { color: #dfe7f2; font-size: .95rem; }
.navtoggle, .navbutton { display: none; }
@media (max-width: 1260px) {
  .navbutton { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
  .navbutton span { width: 24px; height: 2px; background: #fff; display: block; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .navtoggle:checked ~ .mainnav { display: flex; }
  .mainnav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons and links */
.btn { display: inline-block; background: var(--orange); color: #fff; border: 0; border-radius: 8px; padding: 11px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.3; }
.btn:hover { background: var(--orange-dark); color: #fff; }
.btn-large { padding: 14px 28px; font-size: 1.05rem; }
.btn-small { padding: 7px 12px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.textlink { font-weight: 600; margin-left: 12px; }
.textlink.light { color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--navy-2); text-decoration: underline; cursor: pointer; font: inherit; }
.linkbtn.danger { color: var(--critical); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 4px; }
.cta .textlink { margin-left: 16px; }

/* Website sections */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 72px 0 80px; }
.hero.small { padding: 56px 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-shot { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.35); transform: rotate(1.5deg); background: #fff; }
.hero-shot img { display: block; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero-shot { transform: none; } }
.media { align-items: center; }
.shot { display: block; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.portrait { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); margin-bottom: 16px; }
.portrait-right { float: right; width: 200px; height: 200px; margin: 0 0 16px 24px; }
@media (max-width: 600px) { .portrait-right { float: none; display: block; margin: 0 auto 20px; } }
.hero h1 { color: #fff; max-width: 820px; }
.hero .lead { color: #dfe7f2; max-width: 760px; }
.hero .textlink { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--orange); margin-bottom: .5em; }
.lead { font-size: 1.12rem; color: #33404f; max-width: 820px; }
.band { padding: 64px 0; }
.band.alt { background: var(--bg-alt); }
.cta-band { background: var(--navy); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #dfe7f2; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 40px; }
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 28px 0 0; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 22px 22px 22px 70px; position: relative; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; display: grid; place-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: .5em; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.ticks.numbered { counter-reset: n; }
.ticks.numbered li { counter-increment: n; }
.ticks.numbered li::before { content: counter(n) "."; }
.compare { width: 100%; max-width: 720px; border-collapse: collapse; margin-top: 16px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th:last-child, .compare td:last-child { color: var(--navy); font-weight: 600; background: #fff4ec; }
.beliefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.beliefs div { background: #fff; border-left: 4px solid var(--orange); padding: 16px 18px; border-radius: 6px; font-weight: 600; color: var(--navy); box-shadow: var(--shadow); }
.letter p { font-size: 1.08rem; }
.signature { font-weight: 700; color: var(--navy); }
.cycle { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.cycle li { background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.cycle li + li::before { content: "→ "; color: var(--orange); }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.article img { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 12px; display: block; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details p { margin: 10px 0 0; }

/* Forms */
.form label, .form fieldset { display: block; margin-bottom: 16px; font-weight: 600; color: var(--navy); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=password], .form input[type=date], .form input[type=number], .form input:not([type]), .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-weight: 400; color: var(--ink);
  border: 1.5px solid #c5cfdb; border-radius: 8px; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(232,116,44,.25); border-color: var(--orange); }
.form .check { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-weight: 400; color: var(--ink); }
.form .check .hint { flex-basis: 100%; margin-left: 26px; }
.choices { border: 0; padding: 0; }
.choices legend { padding: 0; margin-bottom: 6px; }
.choices .check { margin: 4px 0; }
.cta-band .form label { color: #fff; }
.cta-band .form .hint { color: #b9c6da; }
.leadform { margin-top: 16px; }
.hp { position: absolute; left: -5000px; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.inline { display: inline; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.inline-form label { margin: 0; }

/* App panels */
body.app main { padding: 32px 0 56px; }
.panel { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.panel.callout { border-left: 5px solid var(--orange); }
.panel.warn { border-left: 5px solid var(--critical); }
.panel.thanks { color: var(--ink); }
.pagehead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pagehead h1, .pagehead h2 { margin: 0; }
.flash { background: #fff4ec; border: 1px solid #f6c9a8; padding: 12px 16px; border-radius: 8px; margin: 0 0 20px; }
.error { color: #9d2d1f; background: #fdecea; padding: 10px 14px; border-radius: 8px; }
.ok { color: #1f5e3a; background: #e8f5ec; padding: 10px 14px; border-radius: 8px; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: #e7ecf3; color: var(--navy); margin: 0; }
.status-open { background: #e8f5ec; color: #1f5e3a; }
.status-review { background: #fff4ec; color: #9b4a12; }
.status-released { background: #e7ecf3; color: var(--navy); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.table.compact td, .table.compact th { padding: 6px 8px; }
.table tr.attention td { background: #fff8f2; }
.tablewrap { overflow-x: auto; }
.tablewrap.scroll { max-height: 360px; overflow-y: auto; }
.panel .lead { font-size: 1rem; }
div.lead { border-top: 1px solid var(--line); padding: 12px 0; font-size: .95rem; max-width: none; color: var(--ink); }
.quote { background: var(--bg-alt); border-left: 3px solid var(--orange); padding: 8px 12px; margin: 8px 0; border-radius: 4px; }
.subhead { font-size: 1.05rem; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.edit-ini { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.edit-ini legend { font-weight: 700; padding: 0 6px; }

/* Assessment */
.progress { height: 8px; background: #dfe5ed; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--orange); transition: width .3s; }
.progress-text { font-size: .85rem; color: var(--muted); margin: 6px 0 16px; }
.statement { border: 0; border-top: 1px solid var(--line); padding: 18px 0; margin: 0; }
.statement legend { font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 12px; font-size: 1.02rem; }
.scale { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.scale-opt { position: relative; }
.scale-opt input { position: absolute; opacity: 0; }
.scale-opt span { display: block; text-align: center; padding: 10px 4px; border: 1.5px solid #c5cfdb; border-radius: 8px; cursor: pointer; font-size: .9rem; background: #fff; }
.scale-alt span { border-style: dashed; color: var(--muted); }
.scale-opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.scale-opt input:focus-visible + span { outline: 3px solid rgba(232,116,44,.5); }
.scale-opt span:hover { border-color: var(--orange); }
@media (max-width: 640px) {
  .scale { grid-template-columns: 1fr 1fr; }
  .scale-opt:nth-child(5) { grid-column: span 2; }
}
.saved { min-height: 1.4em; font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.sections { columns: 2 260px; padding-left: 20px; }
.sections li { margin-bottom: 4px; }
.tick { color: var(--healthy); font-weight: 700; }

/* Reports */
.report { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.report section { margin: 32px 0; }
.report-head { border-bottom: 3px solid var(--orange); padding-bottom: 12px; margin-bottom: 24px; }
.report-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.report-tools .flash { flex-basis: 100%; margin: 0; }
.tabs { display: flex; gap: 4px; }
.tabs a { padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.tabs a[aria-current="page"] { background: var(--navy); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; }
.kpi-label { font-size: .85rem; color: var(--muted); }
.kpi-value { font-size: 2.2rem; font-weight: 700; line-height: 1.1; }
.kpi-band { font-size: .85rem; font-weight: 600; }
.band-text-healthy { color: var(--healthy); }
.band-text-developing { color: #5b8a2a; }
.band-text-at-risk { color: #b07a0a; }
.band-text-critical { color: var(--critical); }
.heatmap { border-collapse: separate; border-spacing: 3px; font-size: .9rem; min-width: 560px; }
.heatmap th { text-align: left; font-weight: 600; color: var(--ink); padding: 4px 8px; }
.heatmap thead th { font-size: .8rem; color: var(--muted); vertical-align: bottom; text-align: center; }
.heatmap thead th:first-child { text-align: left; }
.heatmap .n { display: block; font-weight: 400; font-size: .75rem; }
.heatmap .pillar-row th { color: var(--navy); padding-top: 14px; font-size: .95rem; }
.cell { text-align: center; font-weight: 700; padding: 6px 10px; border-radius: 4px; min-width: 52px; display: table-cell; }
span.cell { display: inline-block; min-width: 0; padding: 1px 8px; font-size: .85rem; }
.band-healthy { background: var(--healthy); color: #fff; }
.band-developing { background: var(--developing); color: #1c2633; }
.band-at-risk { background: var(--at-risk); color: #1c2633; }
.band-critical { background: var(--critical); color: #fff; }
.nodata { background: #eef1f5; color: var(--muted); }
.legend { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.flag { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #9b4a12; background: #fff4ec; padding: 1px 6px; border-radius: 4px; vertical-align: middle; }
.gap { border-left: 4px solid var(--orange); padding: 4px 0 4px 16px; margin-bottom: 20px; }
.gap-size { font-size: .85rem; color: var(--muted); font-weight: 400; }
.evidence { font-size: .95rem; color: #33404f; }
.note { background: var(--bg-alt); border-radius: 8px; padding: 18px 20px; }
.note h2 { font-size: 1.15rem; }
.headlines li { margin-bottom: 6px; font-weight: 600; }
.initiative { border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.initiative dt { font-weight: 700; color: var(--navy); margin-top: 10px; }
.initiative dd { margin: 2px 0 0; }
.roadmap li { margin-bottom: 6px; }
.report-foot { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* Footer */
.footer { background: #0d1d36; color: #b9c6da; padding: 36px 0; font-size: .92rem; }
.footer strong { color: #fff; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; align-items: start; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer a { color: #dfe7f2; text-decoration: none; }
.footer a:hover { color: var(--orange); }

.print-only { display: none; }
@media print {
  .print-only { display: block; }
  .print-brand { font-size: .8rem; color: #13294b; border-bottom: 1px solid #dde3ea; padding-bottom: 6px; margin: 0 0 12px; }
  .band { padding: 0; }
  body.site { background: #fff; }
  .topbar, .footer, .noprint, .report-tools { display: none !important; }
  body.app { background: #fff; }
  body.app main { padding: 0; }
  .report { box-shadow: none; padding: 0; }
  .cell, .band-healthy, .band-developing, .band-at-risk, .band-critical { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .initiative, .gap { break-inside: avoid; }
  .wrap { max-width: none; }
}
.mini { padding: 4px 6px; font: inherit; font-size: .9rem; border: 1px solid #c5cfdb; border-radius: 6px; background: #fff; }

/* AI Agent Assessment and AI Agent Prescription */
.scale6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 640px) { .scale6 { grid-template-columns: 1fr 1fr; } .scale6 .scale-opt:nth-child(5) { grid-column: auto; } }
.missing { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 6px; }
.ai-form-band { background: var(--bg-alt); }
.ai-form-band .statement:first-of-type { border-top: 0; }
.ai-submit { text-align: center; padding: 8px 0 24px; }
.ai-snap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; margin-bottom: 20px; }
@media (max-width: 760px) { .ai-snap { grid-template-columns: 1fr; } }
.ai-diag h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: .2em; }
.ai-quad .quad { width: 100%; max-width: 420px; display: block; margin: 0 auto; }
.ai-areas td { vertical-align: middle; }
.ai-total td { font-weight: 700; color: var(--navy); background: var(--bg-alt); }
.ai-barcell { width: 40%; }
.ai-bar { display: block; height: 10px; background: #e7ecf3; border-radius: 999px; overflow: hidden; }
.ai-bar span { display: block; height: 100%; background: var(--at-risk); }
.ai-bar span.hi { background: var(--healthy); }
.ai-snap + .flash, .report .flash { margin: 0 0 12px; }
@media print { .ai-bar span, .ai-total td, .ai-quad rect { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .ai-snap { grid-template-columns: 1.2fr 1fr; } }
.brand-text { white-space: nowrap; }
.steps.five { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.steps.five li { padding: 64px 18px 20px; }
.steps.five li::before { top: 18px; left: 18px; }
.tablewrap + p { margin-top: 16px; }
.services { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
