/* CommsOS public site.
 * Concept: communications as routing. Cool institutional grey and an all-blue palette: cobalt for the
 * brand and actions, sky blue reserved for the route itself (hero diagram, process line, progress).
 * Type: Newsreader (serif) for headlines, Source Sans 3 for text. Self-hosted, OFL.
 */
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader-var.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-var.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --mist: #ECEFF3;
  --white: #FFFFFF;
  --ink: #161A2E;
  --slate: #586078;
  --cobalt: #2340C7;
  --cobalt-deep: #1A2F96;
  --cobalt-soft: #DFE5FA;
  --sky: #7FA3F5;
  --sky-soft: #E3EBFD;
  --line: #CDD3DE;
  --alert: #B4321F;
  --alert-soft: #F8E2DE;
  --ok: #1F6B4A;
  --ok-soft: #DDEFE6;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --text: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --measure: 66ch;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

h1, h2, h3 { margin: 0 0 .5em; color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.015em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); max-width: 15ch; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); max-width: 24ch; }
h3 { font: 600 1.15rem/1.3 var(--text); }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 60; }
.skip:focus { left: 8px; }
.staging-banner { background: var(--sky-soft); color: var(--ink); font-size: .85rem; text-align: center; padding: 5px 12px; }

/* ---------------------------------------------------------------- header and footer */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--mist); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-name { font: 600 1.5rem/1 var(--display); letter-spacing: -.01em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a, .nav-mobile a { color: var(--ink); text-decoration: none; font-size: .95rem; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"], .nav-mobile a[aria-current="page"] { border-bottom-color: var(--cobalt); }
.nav-mobile { display: none; }
.site-footer { background: var(--ink); color: #C9CEDC; padding: 56px 0 40px; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer a { color: #fff; }
.footer-nav { display: grid; gap: 8px; align-content: start; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-small { color: #A3A9BB; }

/* ---------------------------------------------------------------- buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--cobalt); border-radius: 4px;
       background: var(--cobalt); color: #fff; font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-on-blue { background: #fff; border-color: #fff; color: var(--cobalt); }
.btn-on-blue:hover { background: var(--sky-soft); border-color: var(--sky-soft); color: var(--cobalt-deep); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 8px 0; color: var(--slate); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-strong { font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.header-cta[aria-current="page"] { background: var(--ink); border-color: var(--ink); }

/* ---------------------------------------------------------------- page structure */
.band { padding: 88px 0; }
.band-white { background: var(--white); }
.page-head { padding: 80px 0 56px; }
.page-head-tight { padding-bottom: 32px; }
.page-intro { font-size: 1.2rem; line-height: 1.55; color: var(--slate); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }

/* ---------------------------------------------------------------- hero and route */
.hero { padding: 64px 0 40px; }
.hero-text { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: end; }
.hero-text h1 { margin: 0; }
.hero-side .cta-row { margin-top: 20px; }
.hero-lead { font: 600 1.3rem/1.4 var(--text); margin: 0 0 10px; }
.hero-body { color: var(--slate); font-size: 1.08rem; }
.route { margin: 56px 0 0; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 20px 24px 22px; }
.route-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.route-toggle button { font: 600 .9rem/1 var(--text); padding: 10px 16px; background: var(--white); color: var(--slate); border: 0; cursor: pointer; }
.route-toggle button + button { border-left: 1px solid var(--line); }
.route-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.route-stage { position: relative; height: 260px; margin-top: 12px; }
.is-narrow .route-stage { height: 440px; }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-tangle path { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 5; transition: opacity .5s ease; }
.is-after .route-tangle path { opacity: 0; }
.route-line { fill: none; stroke: var(--sky); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset .9s cubic-bezier(.6,0,.2,1) .35s; }
.is-before .route-line { transition-delay: 0s; transition-duration: .35s; }
.route-stops { list-style: none; position: absolute; inset: 0; }
.stop { position: absolute; left: 0; top: 0; width: 0; height: 0; transition: transform .9s cubic-bezier(.6,0,.2,1); }
.stop-dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--ink); transition: border-color .4s, transform .4s; }
.is-before .stop-dot { border-color: var(--slate); border-style: dashed; transform: scale(.8); }
.stop-label { position: absolute; white-space: nowrap; font-size: .92rem; }
.is-before .stop-label { left: 14px; top: -12px; background: var(--mist); color: var(--slate); padding: 2px 8px; border-radius: 3px; }
.is-after .stop-label { left: 50%; top: 20px; transform: translateX(-50%); font-weight: 600; color: var(--ink); }
.is-after.is-narrow .stop-label { left: 22px; top: -12px; transform: none; }
.lbl-after, .is-before .lbl-after, .is-after .lbl-before { display: none; }
.is-after .lbl-after, .is-before .lbl-before { display: inline; }
.route-caption { color: var(--slate); font-size: .95rem; margin-top: 8px; }
.cap-before, .is-before .cap-after { display: none; }
.is-before .cap-before { display: inline; }
.no-anim .stop, .no-anim .route-line, .no-anim .route-tangle path, .no-anim .stop-dot { transition: none !important; }

/* ---------------------------------------------------------------- home sections */
.contrast { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 1.02rem; }
.contrast th { text-align: left; font: 600 .95rem/1.2 var(--text); padding: 0 24px 14px 0; color: var(--slate); }
.contrast th:last-child { color: var(--ink); }
.contrast td { padding: 18px 24px 18px 0; border-top: 1px solid var(--line); vertical-align: top; width: 50%; }
.contrast td:first-child { color: var(--slate); }
.contrast td:last-child { padding-left: 20px; border-left: 4px solid var(--sky); font-weight: 600; }
.area-index { list-style: none; border-top: 1px solid var(--line); }
.area-index a { display: grid; grid-template-columns: 15rem 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.area-index a:hover strong { color: var(--cobalt); }
.area-index span { color: var(--slate); }
.offer-pair { display: grid; gap: 16px; }
.offer-link { display: block; padding: 24px 26px; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--cobalt); border-radius: 4px; text-decoration: none; color: var(--ink); }
.offer-link:hover { border-color: var(--cobalt); }
.offer-link strong { display: block; font: 600 1.5rem/1.15 var(--display); margin-bottom: 6px; }
.offer-link span { color: var(--slate); }

.cta-band { background: var(--cobalt); color: #fff; padding: 72px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--cobalt-soft); margin: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }

/* ---------------------------------------------------------------- system page */
.part { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; padding: 48px 0; border-top: 1px solid var(--line); }
.part:first-child { border-top: 0; padding-top: 0; }
.part-head h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.part-head p { color: var(--slate); font-size: 1.08rem; }
.part-body h3 { color: var(--slate); font-weight: 400; font-size: 1rem; margin-bottom: 12px; }
.ticks { list-style: none; }
.ticks li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--mist); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 14px; height: 8px; border-left: 3px solid var(--cobalt); border-bottom: 3px solid var(--cobalt); transform: rotate(-45deg); }
.note-panel { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--ink); border-radius: 4px; padding: 28px; }
.note-panel p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- how it works: the route line */
.line { list-style: none; position: relative; max-width: 860px; }
.line::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 8px; background: var(--sky); border-radius: 4px; }
.line-stop { position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 28px; padding: 0 0 44px; }
.line-stop:last-child { padding-bottom: 0; }
.line-num { position: relative; z-index: 1; width: 50px; height: 50px; border-radius: 50%; background: var(--white); border: 4px solid var(--ink);
            display: flex; align-items: center; justify-content: center; font: 600 1.1rem/1 var(--display); }
.line-body h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 8px 0 8px; max-width: none; }
.line-time { display: inline-block; margin-left: 10px; font: 400 .95rem/1 var(--text); color: var(--slate); vertical-align: middle; }
.line-body p { color: var(--slate); }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 32px 0 0; }
.principles dt { font: 600 1.25rem/1.2 var(--display); margin-bottom: 8px; padding-top: 14px; border-top: 4px solid var(--ink); }
.principles dd { margin: 0; color: var(--slate); }

/* ---------------------------------------------------------------- starting points */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare thead th { text-align: left; vertical-align: top; padding: 0 24px 22px 0; width: 40%; }
.compare thead td { border: 0; }
.compare-name { display: block; font: 600 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--display); }
.compare-line { display: block; font-weight: 400; color: var(--slate); margin-top: 6px; }
.compare tbody th { text-align: left; font-weight: 600; padding: 20px 24px 20px 0; vertical-align: top; width: 20%; border-top: 1px solid var(--line); }
.compare td { padding: 20px 24px 20px 0; vertical-align: top; border-top: 1px solid var(--line); }
.compare thead th:last-child, .compare td:last-child { padding-left: 24px; border-left: 4px solid var(--sky); }
.pricing-note { margin-top: 32px; color: var(--slate); }

/* ---------------------------------------------------------------- contact and prose */
.faq-wrap, .prose { max-width: 780px; }
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 18px 40px 18px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 10px; height: 10px; border-right: 2.5px solid var(--cobalt); border-bottom: 2.5px solid var(--cobalt); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 29px; }
.faq details p { color: var(--slate); padding-right: 40px; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; max-width: none; }

/* ---------------------------------------------------------------- assessment */
.assess-wrap { max-width: 820px; }
.assess-band { padding-top: 48px; }
.assess { border: 1px solid var(--line); border-radius: 6px; padding: 36px; background: var(--white); }
.assess h3 { font: 600 1.6rem/1.15 var(--display); margin-top: .4em; }
.progress { height: 8px; background: var(--mist); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.progress span { display: block; height: 100%; background: var(--cobalt); transition: width .25s; }
.q-meta { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--slate); margin-bottom: 18px; }
.q-text { font: 600 clamp(1.4rem, 2.6vw, 1.75rem)/1.2 var(--display); margin-bottom: 22px; max-width: none; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; padding: 14px 16px; background: var(--white); border: 2px solid var(--line); border-radius: 4px; font: inherit; color: var(--ink); cursor: pointer; }
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { border-color: var(--cobalt); background: var(--cobalt-soft); }
.opt-key { flex: 0 0 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 600; color: var(--slate); }
.opt[aria-pressed="true"] .opt-key { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.assess .eyebrow { color: var(--slate); font-size: .95rem; margin: 0; }
.result-stage { margin: 4px 0 10px; }
.result-stage .stage { font: 600 clamp(2.6rem, 6vw, 3.6rem)/1 var(--display); color: var(--cobalt); }
.result-stage .stage:focus { outline: none; }
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 22px 0 26px; }
.ladder div { padding-top: 10px; border-top: 8px solid var(--mist); font-size: .85rem; color: var(--slate); }
.ladder div.reached { border-top-color: var(--sky); }
.ladder div.current { border-top-color: var(--cobalt); }
.ladder div.current { color: var(--ink); font-weight: 600; }
.callout { border-left: 6px solid var(--alert); background: var(--alert-soft); padding: 16px 20px; border-radius: 0 4px 4px 0; margin: 20px 0; }
.callout p { margin: .4em 0 0; }
.priority { padding: 14px 0; border-bottom: 1px solid var(--line); }
.priority strong { display: block; }
.priority p { margin: 4px 0 0; color: var(--slate); font-size: .96rem; }
.areas { display: grid; margin: 10px 0 24px; border-top: 1px solid var(--line); }
.area { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pill { font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 3px; white-space: nowrap; }
.pill-low { background: var(--alert-soft); color: var(--alert); }
.pill-mid { background: var(--sky-soft); color: var(--cobalt-deep); }
.pill-high { background: var(--ok-soft); color: var(--ok); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 4px; }
.form-grid label { display: grid; gap: 6px; font-size: .92rem; font-weight: 600; align-content: start; }
.form-grid .full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 12px; color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: 4px; }
input:focus, select:focus, textarea:focus { border-color: var(--cobalt); }
textarea { min-height: 90px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--alert); margin-top: 10px; }
.sent { border-left: 6px solid var(--ok); background: var(--ok-soft); padding: 16px 20px; border-radius: 0 4px 4px 0; }
.muted { color: var(--slate); }
.small { font-size: .9rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .split, .part, .hero-text { grid-template-columns: 1fr; gap: 28px; }
  .hero-lead { margin-top: 0; }
  .principles { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .nav-mobile { display: flex; gap: 22px; overflow-x: auto; padding: 0 32px 8px; scrollbar-width: none; }
  .nav-mobile a { white-space: nowrap; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-mobile { padding: 0 16px 8px; }
  .band { padding: 60px 0; }
  .page-head { padding: 48px 0 36px; }
  .hero { padding: 44px 0 24px; }
  .route { padding: 16px; }
  .route-stage { height: 440px; }
  .contrast thead { display: none; }
  .contrast tr { display: block; padding: 16px 0; border-top: 1px solid var(--line); }
  .contrast td { display: block; width: auto; padding: 0; border: 0; }
  .contrast td:first-child { margin-bottom: 8px; }
  .contrast td:last-child { padding-left: 14px; }
  .area-index a { grid-template-columns: 1fr; gap: 2px; }
  .principles, .footer-inner { grid-template-columns: 1fr; }
  .line::before { left: 17px; }
  .line-stop { grid-template-columns: 42px 1fr; gap: 18px; }
  .line-num { width: 42px; height: 42px; }
  .line-time { display: block; margin: 6px 0 0; }
  .assess { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .ladder div { font-size: .7rem; }
  .brand-name { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
