:root {
  --ink: #142020;
  --muted: #5d6b6c;
  --line: #d8e0df;
  --paper: #fbfcfa;
  --soft: #eef4f1;
  --teal: #0b4b4f;
  --teal-2: #0f6b67;
  --gold: #b98d3b;
  --copper: #9b5637;
  --blue: #305b78;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(20, 32, 32, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(7, 28, 31, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(251, 252, 250, 0.95);
  box-shadow: 0 10px 30px rgba(20, 32, 32, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.25rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  opacity: 0.72;
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: currentColor;
  font-size: 0.93rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible {
  background: var(--soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: currentColor;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 86vh;
  padding: 104px clamp(20px, 5vw, 72px) 48px;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 36, 39, 0.9) 0%, rgba(6, 36, 39, 0.78) 34%, rgba(6, 36, 39, 0.15) 66%),
    url("assets/cofi-hero.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.7rem, 9vw, 7.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 760;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button.primary {
  color: var(--ink);
  background: var(--gold);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.button.outline {
  color: var(--teal);
  border-color: rgba(15, 107, 103, 0.35);
  background: var(--white);
}

.contact-section .button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.button:hover,
.button:focus-visible,
.filter-button:hover,
.service-tab:hover {
  transform: translateY(-1px);
}

.hero-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 34px 0 0;
}

.hero-signals div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-signals dt {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-signals dd {
  margin: 4px 0 0;
  font-weight: 760;
}

.intro-band {
  padding: 34px 0;
  background: var(--ink);
  color: var(--white);
}

.intro-band h2,
.intro-band p {
  margin: 0;
}

.intro-band p:last-child {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.page-hero {
  padding: 132px 0 64px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(18, 35, 35, 0.96), rgba(11, 75, 79, 0.88)),
    var(--teal);
}

.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.98;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
  line-height: 1.65;
}

.section {
  padding: clamp(70px, 8vw, 112px) 0;
}

.section.muted {
  background: var(--soft);
}

.section.dark {
  background: #122323;
  color: var(--white);
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.two-column,
.contact-grid,
.readiness-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

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

.section-heading.compact {
  grid-template-columns: 1fr;
}

h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.section-heading p,
.readiness-layout > div > p,
.contact-grid > div > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.dark .section-heading p,
.dark .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.filter-button,
.service-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.filter-button.is-active,
.service-tab.is-active {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.update-grid,
.service-grid,
.video-grid,
.podcast-grid,
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.update-card,
.video-card,
.podcast-card,
.gateway-card,
.service-card,
.contact-panel,
.readiness-card,
.service-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(20, 32, 32, 0.03);
}

.gateway-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 22px;
}

.gateway-card > svg {
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  color: var(--teal-2);
}

.gateway-card p {
  color: var(--muted);
  line-height: 1.6;
}

.gateway-card:hover,
.gateway-card:focus-visible {
  transform: translateY(-2px);
  outline: 2px solid rgba(15, 107, 103, 0.2);
}

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

.update-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 18px;
}

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

.video-card,
.podcast-card {
  overflow: hidden;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #071c1f;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-body,
.podcast-card {
  padding: 18px;
}

.source-tag {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 820;
  text-transform: uppercase;
}

.plain-label {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 820;
  text-transform: uppercase;
}

.video-card p,
.podcast-card p {
  color: var(--muted);
  line-height: 1.6;
}

.video-card a,
.podcast-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 820;
}

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

.update-card.is-hidden {
  display: none;
}

.update-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--teal-2);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.update-card h3 {
  margin-top: 18px;
}

.update-card p,
.service-card p,
.service-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.update-action {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #122323;
}

.update-action strong,
.update-action span {
  display: block;
}

.update-action strong {
  color: var(--white);
}

.update-action span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.update-card a {
  margin-top: 14px;
  color: var(--blue);
  font-weight: 800;
}

.service-card {
  padding: 22px;
}

.service-card > svg {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  color: var(--teal-2);
}

.service-card ul,
.contact-panel ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.featured-service {
  border-color: rgba(185, 141, 59, 0.36);
  background:
    linear-gradient(145deg, rgba(185, 141, 59, 0.12), rgba(15, 107, 103, 0.08)),
    var(--white);
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.fit-card,
.vacancy-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(20, 32, 32, 0.03);
}

.fit-card {
  padding: 18px;
}

.fit-card p,
.fit-card li,
.vacancy-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.fit-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.exam-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.exam-panel,
.mock-panel,
.archive-card,
.archive-system,
.vacancy-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(20, 32, 32, 0.03);
}

.exam-panel {
  min-height: 360px;
  padding: clamp(22px, 3vw, 32px);
}

.exam-panel p,
.mock-panel p,
.archive-card p,
.archive-system p,
.vacancy-card p {
  color: var(--muted);
  line-height: 1.65;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.price-grid div,
.vacancy-pricing span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.price-grid strong,
.vacancy-pricing strong {
  color: var(--teal);
  font-size: 1.35rem;
}

.price-grid span,
.vacancy-pricing span {
  color: var(--muted);
  line-height: 1.35;
}

.exam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.update-watch {
  background:
    linear-gradient(145deg, rgba(11, 75, 79, 0.08), rgba(185, 141, 59, 0.1)),
    var(--white);
}

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

.watch-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  line-height: 1.45;
}

.watch-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
}

.mock-exam-bank {
  margin-top: 18px;
}

.mock-selector,
.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mock-tab,
.archive-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 820;
}

.mock-tab:hover,
.archive-filter:hover,
.mock-tab:focus-visible,
.archive-filter:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.mock-tab.is-active,
.archive-filter.is-active {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.mock-panel {
  min-height: 360px;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(130deg, rgba(11, 75, 79, 0.06), rgba(48, 91, 120, 0.08)),
    var(--white);
}

.mock-panel h3 {
  max-width: 760px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.mock-sets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.mock-sets a,
.deliverables a,
.notice-link-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--teal);
  background: rgba(15, 107, 103, 0.1);
  border: 1px solid rgba(15, 107, 103, 0.18);
  border-radius: 8px;
  font-weight: 800;
}

.mock-sets a:hover,
.mock-sets a:focus-visible,
.deliverables a:hover,
.deliverables a:focus-visible,
.notice-link-grid a:hover,
.notice-link-grid a:focus-visible {
  color: var(--white);
  background: var(--teal);
  outline: none;
}

.sample-question {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(185, 141, 59, 0.3);
  border-radius: 8px;
  background: rgba(185, 141, 59, 0.08);
}

.sample-question strong {
  display: block;
  margin-bottom: 8px;
}

.sample-question ol {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--ink);
  line-height: 1.55;
}

.disclaimer {
  max-width: 920px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.archive-card,
.vacancy-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 20px;
}

.archive-card.is-hidden {
  display: none;
}

.archive-card a,
.vacancy-card a {
  margin-top: auto;
  padding-top: 16px;
  color: var(--blue);
  font-weight: 820;
}

.archive-system {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 16px;
  padding: clamp(18px, 3vw, 28px);
  overflow-x: auto;
}

.archive-system table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.archive-system th,
.archive-system td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.archive-system th {
  color: var(--teal);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.vacancy-card {
  min-height: 250px;
}

.vacancy-layout {
  display: grid;
  gap: 16px;
}

.vacancy-panel {
  padding: clamp(18px, 3vw, 26px);
}

.panel-heading {
  margin-bottom: 14px;
}

.panel-heading p {
  max-width: 860px;
  margin: 8px 0 0;
}

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

.vacancy-table-wrap {
  overflow-x: auto;
}

.vacancy-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

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

.vacancy-table th {
  color: var(--teal);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.vacancy-table a {
  color: var(--blue);
  font-weight: 820;
}

.vacancy-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.vacancy-pricing span {
  min-height: 78px;
}

.service-programme {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.service-tabs {
  display: grid;
  gap: 8px;
  align-self: start;
}

.service-tab {
  justify-content: flex-start;
  min-height: 54px;
  font-weight: 800;
}

.service-tab svg {
  width: 19px;
  height: 19px;
}

.service-panel {
  min-height: 330px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(130deg, rgba(11, 75, 79, 0.08), rgba(185, 141, 59, 0.09)),
    var(--white);
}

.service-panel h3 {
  max-width: 720px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.sector-list span {
  display: inline;
  color: var(--teal);
  font-weight: 760;
}

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

.promise-card,
.notice-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(20, 32, 32, 0.03);
}

.promise-card {
  padding: 22px;
}

.promise-card h2 {
  font-size: 1.55rem;
}

.promise-card p {
  color: var(--muted);
  line-height: 1.6;
}

.notice-layout {
  display: grid;
  gap: 16px;
}

.notice-panel {
  padding: clamp(18px, 3vw, 26px);
  overflow-x: auto;
}

.notice-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  margin-top: 14px;
}

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

.notice-table th {
  color: var(--teal);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.notice-table a,
.text-link {
  color: var(--blue);
  font-weight: 820;
}

.notice-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey li {
  padding: 20px;
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.journey span {
  color: var(--gold);
  font-weight: 900;
}

.journey strong {
  display: block;
  margin-top: 28px;
  font-size: 1.3rem;
}

.journey p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}

.readiness-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.readiness-result {
  display: block;
  margin-top: 6px;
  padding: 16px;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.45;
}

.sector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(18, 35, 35, 0.96), rgba(11, 75, 79, 0.9)),
    var(--teal);
}

.contact-section .section-heading p,
.contact-grid > div > p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel {
  padding: 24px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #071c1f;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner span:first-child {
  color: var(--white);
  font-weight: 800;
}

.chatbot {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.chatbot-launch,
.chatbot-panel {
  pointer-events: auto;
}

.chatbot-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  max-width: calc(100vw - 28px);
  padding: 12px 16px;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid rgba(20, 32, 32, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 850;
}

.chatbot-launch svg,
.chatbot-icon-button svg,
.chatbot-form button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.chatbot-panel {
  width: min(390px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 104px));
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(20, 32, 32, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.chatbot-panel[hidden] {
  display: none;
}

.chatbot-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 14px;
  color: var(--white);
  background: linear-gradient(130deg, var(--teal), #162d2d);
}

.chatbot-header .eyebrow {
  margin-bottom: 5px;
}

.chatbot-header h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.15;
}

.chatbot-icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  cursor: pointer;
}

.chatbot-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(238, 244, 241, 0.76), rgba(251, 252, 250, 0.96)),
    var(--paper);
}

.chat-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 0.94rem;
}

.chat-message.bot {
  justify-self: start;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.chat-message.user {
  justify-self: end;
  color: var(--white);
  background: var(--teal);
}

.chat-message a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.chat-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 9px;
  color: var(--teal);
  background: rgba(15, 107, 103, 0.08);
  border: 1px solid rgba(15, 107, 103, 0.16);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.83rem;
}

.chatbot-suggestions {
  display: flex;
  gap: 7px;
  padding: 10px 12px 2px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.chatbot-suggestions button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--teal);
  background: rgba(15, 107, 103, 0.08);
  border: 1px solid rgba(15, 107, 103, 0.18);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
}

.chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  padding: 12px;
  background: var(--white);
}

.chatbot-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chatbot-form input:focus {
  outline: 2px solid rgba(15, 107, 103, 0.28);
  border-color: var(--teal-2);
}

.chatbot-form button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .brand {
    min-width: 180px;
  }

  .site-nav {
    gap: 4px;
  }

  .site-nav a {
    padding-inline: 8px;
    font-size: 0.86rem;
  }
}

@media (max-width: 1060px) {
  .update-grid,
  .service-grid,
  .video-grid,
  .podcast-grid,
  .gateway-grid,
  .promise-grid,
  .archive-grid,
  .vacancy-grid,
  .vacancy-grid.compact,
  .fit-grid,
  .journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam-layout,
  .archive-system {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 66px 0 auto 0;
    display: none;
    padding: 14px 16px 18px;
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(20, 32, 32, 0.14);
  }

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

  .site-nav a {
    min-height: 44px;
    padding: 12px;
  }

  .hero {
    min-height: 80vh;
    padding: 98px 20px 38px;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(6, 36, 39, 0.94), rgba(6, 36, 39, 0.72)),
      url("assets/cofi-hero.png") center / cover no-repeat;
  }

  .hero-signals,
  .section-heading,
  .two-column,
  .contact-grid,
  .readiness-layout,
  .service-programme {
    grid-template-columns: 1fr;
  }

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

  .service-tab {
    justify-content: center;
  }

  .mock-sets,
  .vacancy-pricing {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  .hero h1 {
    font-size: clamp(2.7rem, 15vw, 3.8rem);
  }

  .hero-actions,
  .contact-links {
    display: grid;
  }

  .hero-signals,
  .update-grid,
  .service-grid,
  .video-grid,
  .podcast-grid,
  .gateway-grid,
  .promise-grid,
  .archive-grid,
  .vacancy-grid,
  .vacancy-grid.compact,
  .fit-grid,
  .journey,
  .service-tabs {
    grid-template-columns: 1fr;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .mock-tab,
  .archive-filter {
    flex: 1 1 calc(50% - 8px);
  }

  .footer-inner {
    display: grid;
  }

  .chatbot {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .chatbot-panel {
    width: 100%;
    max-height: min(620px, calc(100vh - 88px));
  }

  .chatbot-launch {
    justify-self: end;
  }
}
