@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;600;700&display=swap");

:root {
  --ink: #264653;
  --body: #2d4654;
  --muted: #677d88;
  --canvas: #f3f8fb;
  --surface: #ffffff;
  --soft: #e8f4fa;
  --border: #bdd7e5;
  --blue-900: #264653;
  --blue-800: #1d647f;
  --blue-700: #227c9d;
  --blue-600: #2b8fba;
  --blue-100: #d6edf7;
  --blue-50: #eef7fb;
  --teal: #2a9d8f;
  --green: #2a9d8f;
  --gold: #ffb703;
  --rust: #e76f51;
  --focus: #227c9d;
  --shadow: 0 18px 45px rgba(38, 70, 83, 0.12);
  color-scheme: light;
  font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-900);
}

img,
svg {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 251, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-mark {
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  font: inherit;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 10px;
  color: var(--body);
  text-decoration: none;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--blue-100);
  color: var(--blue-900);
}

.button,
button.button {
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--blue-900);
  background: var(--blue-900);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}

.button:hover {
  color: #fff;
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.button.secondary {
  background: var(--surface);
  color: var(--blue-900);
  border-color: var(--border);
}

.button.secondary:hover {
  color: var(--blue-900);
  background: var(--blue-100);
}

.button.disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
}

.section {
  padding: 72px 0;
}

.section.tight {
  padding: 44px 0;
}

.section.band {
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-50) 100%);
  border-block: 1px solid var(--border);
}

.hero {
  padding: 82px 0 48px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 42px;
  align-items: center;
}

.hero-grid > *,
.split > *,
.section-heading > * {
  min-width: 0;
}

.eyebrow {
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--blue-800);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.55rem, 7vw, 4.8rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0;
}

.lede {
  margin-top: 22px;
  max-width: 62ch;
  font-size: 1.12rem;
  color: var(--body);
  overflow-wrap: break-word;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.location-line {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.visual-panel {
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-50) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.workflow-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  counter-reset: step;
}

.workflow-step {
  min-height: 132px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, var(--blue-50));
  position: relative;
}

.workflow-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-800);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.workflow-step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.workflow-step p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.app-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.app-strip span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-900);
  font-size: 0.82rem;
  font-weight: 700;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.52fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--body);
}

.card .meta,
.meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.fit-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.fit-list li {
  padding-left: 22px;
  position: relative;
}

.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-700);
}

.fit-list.warning li::before {
  background: var(--rust);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.48fr);
  gap: 34px;
  align-items: start;
}

.about-side {
  display: grid;
  gap: 18px;
}

.headshot-panel {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  max-width: 420px;
}

.headshot-panel img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.page-hero {
  padding: 58px 0 36px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(223, 240, 255, 0.32));
}

.page-hero h1 {
  max-width: 13ch;
}

.page-hero .lede {
  max-width: 68ch;
}

.article-list {
  display: grid;
  gap: 16px;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface);
}

.empty-state h2,
.empty-state h3 {
  margin-bottom: 10px;
}

.resource-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
}

.resource-table th,
.resource-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  padding: 14px;
}

.resource-table th {
  color: var(--ink);
  background: var(--blue-100);
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: 1.65rem;
}

.prose h3 {
  margin: 28px 0 10px;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
}

.prose blockquote {
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  background: var(--surface);
  color: var(--body);
}

.intake-form {
  display: grid;
  gap: 14px;
}

.chat-panel {
  display: grid;
  gap: 18px;
}

.chat-header h2 {
  margin-top: 8px;
  font-size: 1.75rem;
}

.chat-header p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--body);
}

.chat-window {
  display: grid;
  gap: 14px;
}

.chat-log {
  display: grid;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding: 2px 4px 2px 0;
}

.chat-message {
  max-width: 92%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--body);
}

.chat-message.assistant {
  justify-self: start;
}

.chat-message.user {
  justify-self: end;
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: #fff;
}

.chat-message.user p {
  color: #fff;
}

.chat-message p {
  margin: 0;
}

.chat-message p + p {
  margin-top: 12px;
}

.chat-input-bar {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.chat-input-bar [data-chat-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.chat-choice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chat-choice-actions .button {
  min-height: 38px;
  padding-inline: 12px;
}

.chat-actions[hidden],
.chat-input-bar[hidden],
.chat-choice-actions[hidden] {
  display: none;
}

.summary-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--blue-50);
  padding: 16px;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
}

.summary-list div {
  display: grid;
  gap: 4px;
}

.summary-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-list dd {
  margin: 0;
  color: var(--ink);
}

.audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(300px, 0.42fr);
  gap: 24px;
  align-items: start;
}

.audit-wizard {
  display: grid;
  gap: 20px;
}

.audit-progress {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue-800);
  font-weight: 800;
}

.audit-step {
  display: grid;
  gap: 18px;
}

.audit-step h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.audit-fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
}

.audit-fieldset legend {
  color: var(--ink);
  font-weight: 800;
  padding: 0 6px;
}

.audit-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.audit-question:last-child {
  border-bottom: 0;
}

.audit-question label {
  grid-template-columns: auto auto;
  align-items: center;
  font-weight: 600;
}

.audit-question input {
  width: 18px;
  min-height: 18px;
}

.audit-score-grid {
  display: grid;
  gap: 14px;
}

.audit-score {
  grid-template-columns: minmax(0, 0.45fr) minmax(150px, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--blue-50);
}

.audit-score span:first-child {
  display: grid;
  gap: 3px;
}

.audit-score em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
}

.audit-score small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 500;
}

.score-value {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-900);
  color: #fff;
  font-weight: 800;
}

.notice-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--blue-50);
  padding: 16px;
}

.notice-box p {
  margin-top: 6px;
}

.audit-result,
.audit-confirmation {
  display: grid;
  gap: 16px;
}

.audit-report-text {
  margin: 0;
  white-space: pre-wrap;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--ink);
  padding: 14px;
  font: inherit;
}

.audit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.audit-side {
  position: sticky;
  top: 96px;
}

.workflow-map.single {
  grid-template-columns: 1fr;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.check-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-weight: 500;
  color: var(--body);
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

input:focus,
select:focus,
textarea:focus,
.button:focus,
.nav-toggle:focus {
  outline: 3px solid rgba(31, 111, 168, 0.24);
  outline-offset: 2px;
}

button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.68;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-message {
  min-height: 44px;
  display: none;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--blue-50);
  color: var(--ink);
}

.form-message.visible {
  display: flex;
}

.cms-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 0.45fr);
  gap: 24px;
  align-items: start;
}

.cms-editor,
.cms-list-panel {
  display: grid;
  gap: 16px;
}

.cms-editor-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: start;
}

.cms-editor-header h2 {
  font-size: 1.6rem;
}

.cms-body {
  min-height: 220px;
}

.cms-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cms-filter-row .button {
  min-height: 38px;
  padding-inline: 12px;
}

.cms-entry-list {
  display: grid;
  gap: 12px;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 4px;
}

.cms-entry-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--blue-50);
  padding: 14px;
}

.cms-entry-item h3 {
  font-size: 1rem;
}

.cms-entry-item .button {
  justify-self: start;
  min-height: 38px;
}

.site-footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.82);
  padding: 46px 0;
  margin-top: 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.6fr);
  gap: 24px;
  align-items: center;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 10px;
  background: transparent;
  padding: 0;
}

.footer-brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.footer-brand-name {
  color: #fff;
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

.footer-brand-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.3;
}

.site-footer a {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 880px) {
  .header-inner {
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    inset: 72px 16px auto;
    display: none;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    justify-content: stretch;
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-grid,
  .section-heading,
  .split,
  .audit-layout,
  .cms-shell,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .audit-side {
    position: static;
  }

  .cms-editor-header {
    display: grid;
  }

  h1 {
    max-width: 7.5ch;
    font-size: clamp(2.15rem, 5vw, 2.65rem);
  }

  .lede {
    max-width: 31ch;
  }

  .grid.three,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .section {
    padding: 52px 0;
  }

  .hero {
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
    max-width: 7.5ch;
  }

  .brand-mark {
    font-size: 1rem;
  }

  .brand-sub {
    font-size: 0.74rem;
  }

  .eyebrow {
    font-size: 0.78rem;
  }

  .workflow-map,
  .grid.two,
  .grid.three,
  .grid.four,
  .audit-question,
  .audit-score,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .audit-question label {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-brand-lockup {
    align-items: flex-start;
  }

  .resource-table,
  .resource-table tbody,
  .resource-table tr,
  .resource-table td,
  .resource-table th {
    display: block;
    width: 100%;
  }

  .resource-table thead {
    display: none;
  }

  .resource-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink);
    font-weight: 800;
    margin-bottom: 4px;
  }
}
