/*fern-site-stylesheet*/@font-face {
    font-family: 'Raleway';
    src: url('/_fern-files/imo.docs.buildwithfern.com/10f1a0ef3f3497901c1c3e9987d0cb97d092a6ce1ff45669a1aed503cf67e6ef/assets/fonts/Raleway.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'AnonymousPro';
    src: url('/_fern-files/imo.docs.buildwithfern.com/a3301097dc93adc305b4bde850014fb8d0ca1a6bb863af98d2ffb00ea6a3abf6/assets/fonts/AnonymousPro-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'AnonymousPro';
    src: url('/_fern-files/imo.docs.buildwithfern.com/fa2f5425d4a0f12f30be21990b70e46c802dcb957bb71bb980c691cab84c06b1/assets/fonts/AnonymousPro-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Raleway Fallback';
    src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo');
    size-adjust: 100.49%;
    ascent-override: 93.54%;
    descent-override: 23.29%;
    line-gap-override: 0.00%;
}

:root {
  --header-height: 64px;
  --header-height-real: 64px;
  --mobile-header-height-real: 64px;
  --content-width: 640px;
  --sidebar-width: 288px;
  --page-width: 1344px;
  --logo-height: 22px;
  --font-body: 'Raleway', 'Raleway Fallback', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-heading: 'Raleway', 'Raleway Fallback', 'Raleway', 'Raleway Fallback', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-code: 'AnonymousPro', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

:root {
  --typography-body-font-family: var(--font-body);
  --typography-heading-font-family: var(--font-heading);
  --typography-code-font-family: var(--font-code);
}


.light, :root {
  --accent-1: #fdfcff;
  --accent-2: #faf8ff;
  --accent-3: #f4efff;
  --accent-4: #ece4ff;
  --accent-5: #e4d7ff;
  --accent-6: #d8c7fc;
  --accent-7: #c8b2f4;
  --accent-8: #b495eb;
  --accent-9: #6b3aab;
  --accent-10: #5c299a;
  --accent-11: #7748b9;
  --accent-12: #3b2160;

  --accent-a1: #5500ff03;
  --accent-a2: #4900ff07;
  --accent-a3: #5000ff10;
  --accent-a4: #4c00ff1b;
  --accent-a5: #5300ff28;
  --accent-a6: #4e00f238;
  --accent-a7: #4900db4d;
  --accent-a8: #4b01cf6a;
  --accent-a9: #400092c5;
  --accent-a10: #3d0087d6;
  --accent-a11: #42009eb7;
  --accent-a12: #1e0048de;

  --accent-contrast: #fff;
  --accent-surface: #f9f6ffcc;
  --accent-indicator: #6b3aab;
  --accent-track: #6b3aab;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --accent-1: oklch(99.3% 0.0035 299.6);
      --accent-2: oklch(98.3% 0.0093 299.6);
      --accent-3: oklch(96.1% 0.0226 299.6);
      --accent-4: oklch(93.3% 0.0401 299.6);
      --accent-5: oklch(90.2% 0.0569 299.6);
      --accent-6: oklch(86.2% 0.0736 299.6);
      --accent-7: oklch(80.5% 0.0945 299.6);
      --accent-8: oklch(73.1% 0.125 299.6);
      --accent-9: oklch(46.9% 0.1726 299.6);
      --accent-10: oklch(41.7% 0.1726 299.6);
      --accent-11: oklch(51.2% 0.1726 299.6);
      --accent-12: oklch(31.8% 0.1077 299.6);

      --accent-a1: color(display-p3 0.349 0.0235 1 / 0.012);
      --accent-a2: color(display-p3 0.302 0.0235 0.8627 / 0.028);
      --accent-a3: color(display-p3 0.2549 0.0078 0.9412 / 0.063);
      --accent-a4: color(display-p3 0.2627 0.0039 0.9294 / 0.106);
      --accent-a5: color(display-p3 0.2784 0.0039 0.9255 / 0.157);
      --accent-a6: color(display-p3 0.2392 0.0039 0.8745 / 0.216);
      --accent-a7: color(display-p3 0.2275 0.0039 0.7922 / 0.299);
      --accent-a8: color(display-p3 0.2392 0.0039 0.7529 / 0.412);
      --accent-a9: color(display-p3 0.2039 0 0.5373 / 0.765);
      --accent-a10: color(display-p3 0.2 0 0.4941 / 0.828);
      --accent-a11: color(display-p3 0.2118 0 0.5804 / 0.71);
      --accent-a12: color(display-p3 0.0941 0 0.2667 / 0.867);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.9765 0.9647 0.9961 / 0.8);
      --accent-indicator: oklch(46.9% 0.1726 299.6);
      --accent-track: oklch(46.9% 0.1726 299.6);
    }
  }
}


.light, :root {
  --grayscale-1: #fdfcfd;
  --grayscale-2: #faf9fb;
  --grayscale-3: #f2eff3;
  --grayscale-4: #eae7ec;
  --grayscale-5: #e3dfe6;
  --grayscale-6: #dbd8e0;
  --grayscale-7: #d0cdd7;
  --grayscale-8: #bcbac7;
  --grayscale-9: #8e8c99;
  --grayscale-10: #84828e;
  --grayscale-11: #65636d;
  --grayscale-12: #211f26;

  --grayscale-a1: #55005503;
  --grayscale-a2: #2b005506;
  --grayscale-a3: #30004010;
  --grayscale-a4: #20003618;
  --grayscale-a5: #20003820;
  --grayscale-a6: #14003527;
  --grayscale-a7: #10003332;
  --grayscale-a8: #08003145;
  --grayscale-a9: #05001d73;
  --grayscale-a10: #0500197d;
  --grayscale-a11: #0400119c;
  --grayscale-a12: #020008e0;

  --grayscale-contrast: #000;
  --grayscale-surface: #ffffffcc;
  --grayscale-indicator: #8e8c99;
  --grayscale-track: #8e8c99;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --grayscale-1: color(display-p3 0.991 0.988 0.992);
      --grayscale-2: color(display-p3 0.98 0.976 0.984);
      --grayscale-3: color(display-p3 0.946 0.938 0.952);
      --grayscale-4: color(display-p3 0.915 0.906 0.925);
      --grayscale-5: color(display-p3 0.886 0.876 0.901);
      --grayscale-6: color(display-p3 0.856 0.846 0.875);
      --grayscale-7: color(display-p3 0.814 0.804 0.84);
      --grayscale-8: color(display-p3 0.735 0.728 0.777);
      --grayscale-9: color(display-p3 0.555 0.549 0.596);
      --grayscale-10: color(display-p3 0.514 0.508 0.552);
      --grayscale-11: color(display-p3 0.395 0.388 0.424);
      --grayscale-12: color(display-p3 0.128 0.122 0.147);

      --grayscale-a1: #55005503;
      --grayscale-a2: #2b005506;
      --grayscale-a3: #30004010;
      --grayscale-a4: #20003618;
      --grayscale-a5: #20003820;
      --grayscale-a6: #14003527;
      --grayscale-a7: #10003332;
      --grayscale-a8: #08003145;
      --grayscale-a9: #05001d73;
      --grayscale-a10: #0500197d;
      --grayscale-a11: #0400119c;
      --grayscale-a12: #020008e0;

      --grayscale-contrast: #000;
      --grayscale-surface: color(display-p3 1 1 1 / 80%);
      --grayscale-indicator: color(display-p3 0.555 0.549 0.596);
      --grayscale-track: color(display-p3 0.555 0.549 0.596);
    }
  }
}


.dark {
  --accent-1: #1d1823;
  --accent-2: #211b28;
  --accent-3: #322440;
  --accent-4: #3e2952;
  --accent-5: #47305d;
  --accent-6: #513969;
  --accent-7: #61467b;
  --accent-8: #775798;
  --accent-9: #c4a0ea;
  --accent-10: #b995de;
  --accent-11: #c8a4ef;
  --accent-12: #e8dcf6;

  --accent-a1: #fe000010;
  --accent-a2: #f51c0015;
  --accent-a3: #fa56a427;
  --accent-a4: #fe61e233;
  --accent-a5: #fc72f33d;
  --accent-a6: #fc86ff48;
  --accent-a7: #f090ff5e;
  --accent-a8: #dc91fe82;
  --accent-a9: #d8aefee6;
  --accent-a10: #d9acffd7;
  --accent-a11: #d7afffec;
  --accent-a12: #f0e4fef5;

  --accent-contrast: #fff;
  --accent-surface: #341b2380;
  --accent-indicator: #c4a0ea;
  --accent-track: #c4a0ea;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --accent-1: oklch(22.1% 0.021 306.2);
      --accent-2: oklch(23.5% 0.0254 306.2);
      --accent-3: oklch(28.9% 0.0535 306.2);
      --accent-4: oklch(32.5% 0.0749 306.2);
      --accent-5: oklch(35.6% 0.0795 306.2);
      --accent-6: oklch(39.4% 0.0823 306.2);
      --accent-7: oklch(44.7% 0.0895 306.2);
      --accent-8: oklch(51.7% 0.1053 306.2);
      --accent-9: oklch(76.4% 0.1101 306.2);
      --accent-10: oklch(73% 0.1101 306.2);
      --accent-11: oklch(77.8% 0.1101 306.2);
      --accent-12: oklch(91.2% 0.0365 306.2);

      --accent-a1: color(display-p3 0.9882 0 0 / 0.047);
      --accent-a2: color(display-p3 0.9882 0.1098 0 / 0.064);
      --accent-a3: color(display-p3 0.9961 0.4078 0.6863 / 0.131);
      --accent-a4: color(display-p3 1 0.4392 0.9529 / 0.177);
      --accent-a5: color(display-p3 1 0.5098 1 / 0.215);
      --accent-a6: color(display-p3 0.9333 0.5529 1 / 0.272);
      --accent-a7: color(display-p3 0.902 0.5882 1 / 0.358);
      --accent-a8: color(display-p3 0.8392 0.5922 1 / 0.491);
      --accent-a9: color(display-p3 0.8392 0.7059 0.9961 / 0.877);
      --accent-a10: color(display-p3 0.8431 0.6941 1 / 0.82);
      --accent-a11: color(display-p3 0.8353 0.7059 1 / 0.9);
      --accent-a12: color(display-p3 0.949 0.9059 1 / 0.948);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.1804 0.102 0.1294 / 0.5);
      --accent-indicator: oklch(76.4% 0.1101 306.2);
      --accent-track: oklch(76.4% 0.1101 306.2);
    }
  }
}


.dark {
  --grayscale-1: #121113;
  --grayscale-2: #1a191b;
  --grayscale-3: #232225;
  --grayscale-4: #2b292d;
  --grayscale-5: #323035;
  --grayscale-6: #3c393f;
  --grayscale-7: #49474e;
  --grayscale-8: #625f69;
  --grayscale-9: #6f6d78;
  --grayscale-10: #7c7a85;
  --grayscale-11: #b5b2bc;
  --grayscale-12: #eeeef0;

  --grayscale-a1: #00000000;
  --grayscale-a2: #f5f4f609;
  --grayscale-a3: #ebeaf814;
  --grayscale-a4: #eee5f81d;
  --grayscale-a5: #efe6fe25;
  --grayscale-a6: #f1e6fd30;
  --grayscale-a7: #eee9ff40;
  --grayscale-a8: #eee7ff5d;
  --grayscale-a9: #eae6fd6e;
  --grayscale-a10: #ece9fd7c;
  --grayscale-a11: #f5f1ffb7;
  --grayscale-a12: #fdfdffef;

  --grayscale-contrast: #fff;
  --grayscale-surface: rgba(0, 0, 0, 0.05);
  --grayscale-indicator: #6f6d78;
  --grayscale-track: #6f6d78;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --grayscale-1: color(display-p3 0.07 0.067 0.074);
      --grayscale-2: color(display-p3 0.101 0.098 0.105);
      --grayscale-3: color(display-p3 0.138 0.134 0.144);
      --grayscale-4: color(display-p3 0.167 0.161 0.175);
      --grayscale-5: color(display-p3 0.196 0.189 0.206);
      --grayscale-6: color(display-p3 0.232 0.225 0.245);
      --grayscale-7: color(display-p3 0.286 0.277 0.302);
      --grayscale-8: color(display-p3 0.383 0.373 0.408);
      --grayscale-9: color(display-p3 0.434 0.428 0.467);
      --grayscale-10: color(display-p3 0.487 0.48 0.519);
      --grayscale-11: color(display-p3 0.707 0.7 0.735);
      --grayscale-12: color(display-p3 0.933 0.933 0.94);

      --grayscale-a1: #00000000;
      --grayscale-a2: #f5f4f609;
      --grayscale-a3: #ebeaf814;
      --grayscale-a4: #eee5f81d;
      --grayscale-a5: #efe6fe25;
      --grayscale-a6: #f1e6fd30;
      --grayscale-a7: #eee9ff40;
      --grayscale-a8: #eee7ff5d;
      --grayscale-a9: #eae6fd6e;
      --grayscale-a10: #ece9fd7c;
      --grayscale-a11: #f5f1ffb7;
      --grayscale-a12: #fdfdffef;

      --grayscale-contrast: #fff;
      --grayscale-surface: color(display-p3 0 0 0 / 5%);
      --grayscale-indicator: color(display-p3 0.434 0.428 0.467);
      --grayscale-track: color(display-p3 0.434 0.428 0.467);
    }
  }
}

.light, :root {
  color-scheme: light;
  --accent: rgba(107, 58, 171, 1);
  --background: rgba(255, 255, 255, 1);
  --border: rgba(208, 212, 217, 1);
  --sidebar-background: rgba(255, 255, 255, 1);
  --header-background: rgba(255, 255, 255, 1);
  --card-background: rgba(248, 246, 252, 1);
  --theme-color: #fff;
}

.dark {
  color-scheme: dark;
  --accent: rgba(196, 160, 234, 1);
  --background: rgba(14, 27, 46, 1);
  --border: rgba(34, 53, 77, 1);
  --sidebar-background: rgba(14, 27, 46, 1);
  --header-background: rgba(14, 27, 46, 1);
  --card-background: rgba(22, 39, 61, 1);
  --theme-color: #0e1b2e;
}

/* ------------------------------------------------------------------
   IMO Health design language
   Palette + hero treatment taken from developer.imohealth.com
     purple  #7E48C1  (accent, buttons, links)
     wordmark#57039E
     navy    #00385C / #172950 / #263240  (headings)
     slate   #566576  (body copy)
     rules   #D0D4D9 / #EBEEF2
     tint    #F1ECF8  (light purple wash)
   ------------------------------------------------------------------ */

:root {
  --imo-purple: #7e48c1;
  --imo-purple-deep: #57039e;
  --imo-navy: #00385c;
  --imo-navy-deep: #172950;
  --imo-ink: #263240;
  --imo-slate: #566576;
  --imo-rule: #d0d4d9;
  --imo-rule-soft: #ebeef2;
  --imo-tint: #f1ecf8;
  --imo-green: #35a166;
  --imo-orange: #ec881d;
  --imo-teal: #1fd9ab;
}

/* IMO sets headings in navy, not black */
.fern-docs h1,
.fern-docs h2,
.fern-docs h3 {
  color: var(--imo-ink);
  letter-spacing: -0.01em;
}
.dark .fern-docs h1,
.dark .fern-docs h2,
.dark .fern-docs h3 {
  color: #eef2f7;
}

/* ---------------- Hero ---------------- */

.imo-hero {
  position: relative;
  /* Full-bleed: cancel the docs content gutter, then re-establish our own
     centered container on .imo-hero__inner so copy still lines up with the
     rest of the page. */
  margin: -1.5rem calc(50% - 50vw) 3rem;
  padding: 5.5rem 0 5rem;
  width: 100vw;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* The hero art is rendered as an <img> rather than a CSS background so Fern's
   asset pipeline rewrites the path correctly in both `docs dev` and production
   (a url() in this stylesheet is not resolved against fern/assets). */
.imo-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Their hero overlay is rgba(0,56,92,0) — i.e. art shows through untinted.
   In dark mode we need a scrim so white copy stays legible. */
.dark .imo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(14, 27, 46, 0.94) 0%,
    rgba(14, 27, 46, 0.86) 45%,
    rgba(14, 27, 46, 0.55) 100%
  );
}

.imo-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1344px;   /* matches layout.page-width in docs.yml */
  margin: 0 auto;
  padding: 0 2rem;
}

.imo-hero__copy {
  max-width: 620px;
}

.imo-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--imo-navy);
}
.dark .imo-hero__title { color: #ffffff; }
/* MDX can wrap inline content in a <p>; keep it from adding its own spacing. */
.imo-hero__title p { margin: 0; }

.imo-hero__subtitle {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--imo-slate);
  max-width: 34rem;
}
.dark .imo-hero__subtitle { color: #b9c6d6; }

.imo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* IMO's button system, measured from developer.imohealth.com: Raleway 14px/600,
   uppercase, 4px radius, 2px solid border, padding 7.5px 15px. Their buttons are
   square-ish rectangles, not pills. */
.imo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 7.5px 15px;
  border-radius: 4px;
  border: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

/* Over the hero art the site uses a white fill with navy text. */
.imo-btn--primary {
  background: #ffffff;
  color: var(--imo-navy) !important;
  border-color: #ffffff;
}
.imo-btn--primary:hover {
  background: var(--imo-navy);
  color: #ffffff !important;
  border-color: var(--imo-navy);
}
.imo-btn--primary:focus-visible {
  background: var(--imo-navy);
  color: #ffffff !important;
  border-color: var(--imo-navy);
}

.imo-btn--secondary {
  background: transparent;
  color: var(--imo-purple) !important;
  border-color: var(--imo-purple);
}
.imo-btn--secondary:hover {
  background: var(--imo-purple);
  color: #ffffff !important;
}
.imo-btn--secondary:focus-visible {
  background: var(--imo-purple);
  color: #ffffff !important;
}
.dark .imo-btn--primary {
  background: #ffffff;
  color: var(--imo-navy) !important;
  border-color: #ffffff;
}
.dark .imo-btn--secondary {
  color: #c4a0ea !important;
  border-color: #9b6fd0;
}
.dark .imo-btn--secondary:hover {
  background: #9b6fd0;
  color: #ffffff !important;
}
.dark .imo-btn--secondary:focus-visible {
  background: #9b6fd0;
  color: #ffffff !important;
}

/* ---------------- Page container ----------------
   `layout: custom` strips the docs content gutter, so the landing page
   re-establishes its own centered container for everything below the hero. */

.imo-page {
  max-width: 1344px;   /* matches layout.page-width in docs.yml */
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 640px) {

  .imo-page { padding: 0 1.25rem; }

}

/* ---------------- Section headers ---------------- */

.imo-section {
  margin: 3.5rem 0 1.5rem;
}
.imo-section__title {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--imo-ink);
}
.imo-section__sub {
  margin: 0;
  color: var(--imo-slate);
  font-size: 1rem;
}
.dark .imo-section__title { color: #eef2f7; }
.dark .imo-section__sub { color: #9fb0c4; }

/* Purple accent rule above section titles — an IMO motif */
.imo-section__title::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 0.85rem;
  border-radius: 2px;
  background: var(--imo-purple);
}

/* ---------------- Stat strip ---------------- */

.imo-page > .imo-section:first-child { margin-top: 0; }

.imo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin: 2.5rem 0;
  background: var(--imo-rule);
  border: 1px solid var(--imo-rule);
  border-radius: 10px;
  overflow: hidden;
}
.dark .imo-stats {
  background: #22354d;
  border-color: #22354d;
}
.imo-stat {
  background: #ffffff;
  padding: 1.35rem 1.25rem;
}
.dark .imo-stat { background: #16273d; }
.imo-stat__value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--imo-purple);
  line-height: 1.15;
}
.imo-stat__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.83rem;
  color: var(--imo-slate);
}
.dark .imo-stat__label { color: #9fb0c4; }

/* ---------------- Code-system chips ---------------- */

.imo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}
.imo-chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--imo-tint);
  border: 1px solid rgba(126, 72, 193, 0.22);
  color: var(--imo-purple-deep);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: AnonymousPro, Menlo, Monaco, Consolas, monospace;
}
.dark .imo-chip {
  background: rgba(126, 72, 193, 0.16);
  border-color: rgba(196, 160, 234, 0.3);
  color: #d9c2f2;
}

/* ---------------- CTA band ---------------- */

.imo-cta {
  margin: 4rem calc(50% - 50vw) -1.5rem;
  width: 100vw;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f6f2fc 0%, #eef4f8 100%);
  border-top: 1px solid var(--imo-rule);
}
.dark .imo-cta {
  background: linear-gradient(135deg, #16273d 0%, #12203a 100%);
  border-top-color: #22354d;
}
.imo-cta__title {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--imo-navy);
}
.dark .imo-cta__title { color: #ffffff; }
.imo-cta__sub {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  color: var(--imo-slate);
}
.dark .imo-cta__sub { color: #9fb0c4; }
.imo-cta__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {

  .imo-hero {
    padding: 3.5rem 0;
    min-height: 340px;
  }
  .imo-hero__inner { padding: 0 1.25rem; }

}

/* ---------------- Footer ---------------- */

/* Full-bleed like .imo-hero: cancel the docs content gutter, then re-establish
   our own centered container on .imo-footer__inner. Zero bottom margin so the
   band sits flush against the bottom of the viewport with nothing showing
   through beneath it. */
.imo-footer {
  margin: 4rem calc(50% - 50vw) 0;
  padding: 0;
  width: 100vw;
  /* Match the page background so this band and Fern's own footer above it read
     as one continuous block instead of a navy strip pasted on. Fern sets
     --background per theme (white in light, #0e1b2e in dark), so tracking the
     variable keeps both themes correct without a .dark override here. */
  background: var(--background);
  /* No top border here on purpose — the hero used var(--imo-rule), which is
     only defined for light mode, and rendered as a near-white hairline in dark
     mode. The background change is enough separation. */
}

.imo-footer__inner {
  max-width: 1344px;
  margin: 0 auto;
  padding: 1.75rem 2rem 4.5rem;
}

/* Relocated below #fern-footer by js/footer.js: it is a full-width sibling of
   <main> there, so the gutter-cancelling trick above is no longer needed and
   would overflow the viewport. */
.imo-footer[data-imo-relocated] {
  margin: 0;
  width: 100%;
}

/* --- legal row (matches developer.imohealth.com markup) --- */
.imo-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.imo-footer .zg-copyright {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.imo-footer .zg-copyright--header {
  color: var(--imo-ink);
  font-size: 0.8rem;
  font-weight: 600;
}
.imo-footer .zg-copyright--content {
  color: var(--imo-slate);
  font-size: 0.8rem;
}
.dark .imo-footer .zg-copyright--header { color: #d5dde7; }
.dark .imo-footer .zg-copyright--content { color: #8fa2b8; }

.imo-footer .menu--footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.imo-footer .menu--footer li {
  margin: 0;
  padding: 0;
}
/* Fern's prose styles put a bullet on list items via li::before, which
   list-style: none does not remove. */
.imo-footer .menu--footer li::before,
.imo-footer .menu--footer li::marker {
  content: none;
}
.imo-footer .menu--footer a {
  color: var(--imo-slate);
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.imo-footer .menu--footer a:hover {
  color: var(--imo-navy);
  border-bottom-color: rgba(0, 56, 92, 0.35);
}
.imo-footer .menu--footer a:focus-visible {
  color: var(--imo-navy);
  border-bottom-color: rgba(0, 56, 92, 0.35);
}
.dark .imo-footer .menu--footer a { color: #8fa2b8; }
.dark .imo-footer .menu--footer a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}
.dark .imo-footer .menu--footer a:focus-visible {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* Screen-reader-only, per the visually-hidden class in their markup. */
.imo-footer .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {

  .imo-footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* ---------------- Navbar buttons ----------------
   Match the real portal's header controls: uppercase Raleway 14px/600 in a
   4px-radius rectangle with a 2px purple border on the outlined one.
   Fern emits <a class="fern-button outlined|minimal"> inside <header> — note
   there is no .fern-header wrapper, so the header element is the scope. */
header .fern-button.outlined,
header .fern-button.minimal {
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

header .fern-button.outlined {
  border: 2px solid var(--imo-purple);
  color: var(--imo-purple);
  background: transparent;
}
header .fern-button.outlined:hover {
  background: var(--imo-purple);
  color: #ffffff;
}
header .fern-button.outlined:focus-visible {
  background: var(--imo-purple);
  color: #ffffff;
}

header .fern-button.minimal {
  color: var(--imo-navy);
}
header .fern-button.minimal:hover { color: var(--imo-purple); }
header .fern-button.minimal:focus-visible { color: var(--imo-purple); }

.dark header .fern-button.outlined {
  border-color: #9b6fd0;
  color: #c4a0ea;
}
.dark header .fern-button.outlined:hover {
  background: #9b6fd0;
  color: #ffffff;
}
.dark header .fern-button.outlined:focus-visible {
  background: #9b6fd0;
  color: #ffffff;
}
.dark header .fern-button.minimal { color: #d5dde7; }
.dark header .fern-button.minimal:hover { color: #c4a0ea; }
.dark header .fern-button.minimal:focus-visible { color: #c4a0ea; }
