@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --paper: #f7f9fb;
  --paper-2: #eef3f7;
  --ink: #1e3957;
  --ink-soft: #51667c;
  --muted: #758393;
  --line: #d6e0e8;
  --blue: #227cb5;
  --blue-2: #2e9bd8;
  --teal: #0f766e;
  --coral: #c64b36;
  --yellow: #f0b429;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(30, 57, 87, 0.12);
  --font: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 14px;
  left: 14px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.env {
  width: min(100% - 48px, var(--width));
  margin-inline: auto;
}

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

.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: 164px;
  height: auto;
}

.brand--footer img {
  width: 154px;
}

.primary-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  align-items: center;
}

.primary-nav a {
  color: var(--ink-soft);
  padding: 10px 0;
}

.primary-nav a:hover {
  color: var(--blue);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 0;
}

.nav-dropdown__toggle:hover,
.nav-dropdown.is-open .nav-dropdown__toggle {
  color: var(--blue);
}

.nav-dropdown__toggle span {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.nav-dropdown.is-open .nav-dropdown__toggle span {
  transform: translateY(2px) rotate(225deg);
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: min(920px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-dropdown__panel.is-open,
.nav-dropdown.is-open .nav-dropdown__panel {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown__panel a {
  display: flex;
  min-width: 160px;
  padding: 12px;
  border-radius: var(--radius);
  flex: 1 1 0;
  flex-direction: column;
}

.nav-dropdown__panel a:hover {
  background: var(--paper-2);
}

.nav-dropdown__panel strong,
.nav-dropdown__panel small {
  display: block;
}

.nav-dropdown__panel strong {
  color: var(--ink);
  font-size: 14px;
}

.nav-dropdown__panel small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.nav-dropdown.is-open .nav-dropdown__panel {
  display: flex;
  gap: 6px;
}

.nav-mobile-action {
  display: none;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--paper-2);
  border-color: var(--blue);
  color: var(--blue);
}

.btn--outline {
  background: var(--white);
  border-color: var(--blue);
  color: var(--blue);
}

.btn--outline:hover {
  background: var(--blue);
  color: var(--white);
}

.ext::after {
  content: "↗";
  margin-left: 6px;
  font-size: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span:not(.screen-reader-text) {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 76px 0 54px;
  background:
    linear-gradient(120deg, rgba(34, 124, 181, 0.12), rgba(15, 118, 110, 0.08)),
    var(--paper);
}

.hero--compact {
  padding: 54px 0 42px;
}

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

.hero__copy {
  max-width: 680px;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: 58px;
}

h2 {
  font-size: 40px;
}

h3 {
  font-size: 22px;
}

p {
  margin: 0;
}

.lead {
  max-width: 68ch;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.6;
}

.hero__actions,
.section-actions,
.form-actions,
.cta-band__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero__actions {
  margin-top: 30px;
}

.media-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.media-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.media-card figcaption,
.card__image figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
}

.subnav {
  position: sticky;
  top: 77px;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-block: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.admin-bar .subnav {
  top: 109px;
}

.subnav__inner {
  display: flex;
  gap: 22px;
  min-height: 52px;
  align-items: center;
  overflow-x: auto;
}

.subnav a {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.section {
  padding: 76px 0;
  scroll-margin-top: 140px;
}

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

.section__grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  gap: 56px;
  align-items: start;
}

.section__intro {
  position: sticky;
  top: 150px;
}

.section__intro .lead {
  font-size: 18px;
}

.section__body {
  display: grid;
  gap: 24px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

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

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

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

.card {
  display: flex;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h2,
.card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.card p {
  color: var(--ink-soft);
  font-size: 15px;
}

.card__more {
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.card--media {
  padding: 0;
  overflow: hidden;
}

.card__image {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.card__image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card__body {
  display: flex;
  padding: 22px;
  flex: 1;
  flex-direction: column;
}

.facts {
  display: grid;
  gap: 10px;
}

.fact {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 0.65fr);
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.fact dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.fact dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

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

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

.stat {
  min-height: 116px;
  padding: 18px 0;
  border-top: 2px solid var(--blue-2);
}

.stat strong {
  display: block;
  color: var(--white);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: #d4e0ea;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.faq-item summary {
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.faq-item p {
  padding: 0 22px 20px;
  color: var(--ink-soft);
}

.diagnostic-form {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

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

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

label span {
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex: 0 0 18px;
}

.form-actions p {
  color: var(--ink-soft);
  font-size: 14px;
}

.form-actions a {
  color: var(--blue);
  font-weight: 700;
}

.notice {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 700;
}

.notice--success {
  background: #dcfce7;
  color: #14532d;
}

.cta-band {
  padding: 54px 0;
  background:
    linear-gradient(90deg, rgba(34, 124, 181, 0.16), rgba(240, 180, 41, 0.16)),
    var(--paper);
  border-block: 1px solid var(--line);
}

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.cta-band p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.site-footer {
  padding: 52px 0 28px;
  background: var(--ink);
  color: var(--white);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 30px;
}

.brand--footer {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--white);
  margin-bottom: 12px;
}

.site-footer p,
.site-footer li {
  color: #d4e0ea;
  font-size: 14px;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: var(--blue-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.assistant-launch {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.assistant-launch:hover {
  background: var(--teal);
}

.assistant-panel {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(30, 57, 87, 0.42);
}

.assistant-panel__card {
  position: relative;
  width: min(100%, 520px);
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.assistant-panel h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.assistant-options {
  display: grid;
  gap: 10px;
}

.assistant-options a {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
}

.assistant-options a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.icon-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.icon-close::before,
.icon-close::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 19px;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.icon-close::before {
  transform: rotate(45deg);
}

.icon-close::after {
  transform: rotate(-45deg);
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-banner p {
  color: var(--ink-soft);
  font-size: 14px;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-config {
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cookie-config a {
  color: var(--blue);
  font-weight: 700;
}

.article .prose,
.prose {
  max-width: 760px;
}

.prose p {
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.pagination {
  margin-top: 32px;
}

@media (max-width: 1120px) {
  .primary-nav {
    gap: 12px;
    font-size: 13px;
  }

  .header-actions .btn {
    padding-inline: 13px;
  }
}

@media (max-width: 980px) {
  .env {
    width: min(100% - 32px, var(--width));
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    margin: 0;
    padding: 18px 16px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav-open .primary-nav {
    display: flex;
  }

  .primary-nav a {
    padding: 12px;
    border-radius: var(--radius);
  }

  .nav-dropdown {
    border-radius: var(--radius);
  }

  .nav-dropdown__toggle {
    justify-content: space-between;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
  }

  .nav-dropdown__toggle:hover {
    background: var(--paper-2);
  }

  .nav-dropdown__panel {
    position: static;
    width: 100%;
    margin: 4px 0 8px;
    padding: 6px;
    box-shadow: none;
    transform: none;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-dropdown__panel.is-open,
  .nav-dropdown.is-open .nav-dropdown__panel {
    display: flex;
    gap: 6px;
    transform: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .nav-dropdown__panel a {
    flex: 0 0 min(260px, calc(100vw - 56px));
    scroll-snap-align: start;
  }

  .primary-nav a:hover {
    background: var(--paper-2);
  }

  .nav-mobile-action {
    display: block;
    border: 1px solid var(--line);
  }

  .header-actions {
    display: none;
  }

  .hero__grid,
  .section__grid,
  .cta-band__inner {
    grid-template-columns: 1fr;
  }

  .section__intro {
    position: static;
  }

  .grid--3,
  .grid--2,
  .stats-band__grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 14ch;
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .media-card img {
    height: 300px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header__inner {
    min-height: 68px;
  }

  .primary-nav {
    inset: 68px 0 auto 0;
  }

  .hero,
  .section {
    padding: 48px 0;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 18px;
  }

  .form-grid,
  .fact {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .assistant-launch {
    right: 16px;
    bottom: 16px;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
