@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/pricing/assets/ibm-plex-mono-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f4f1e8;
  --white: #fffdf7;
  --ink: #1b1b1b;
  --muted: #5d5b54;
  --line-soft: #c9c4b8;
  --yellow: #ffbf00;
  --blue: #1754b5;
  --blue-deep: #0d377d;
  --red: #f0182b;
  --green: #16704a;
  --display: 'Unbounded', 'Arial Narrow', sans-serif;
  --body: 'Onest', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--blue) var(--paper);
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
}

body::selection,
body *::selection {
  color: var(--ink);
  background: var(--yellow);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.public-header {
  min-height: 72px;
  padding: 0 clamp(1rem, 4vw, 4.5rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  border-bottom: 2px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}

.public-header nav {
  display: flex;
  justify-content: center;
  gap: clamp(.8rem, 2vw, 2rem);
}

.public-header nav a,
.public-access {
  font-family: var(--display);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.public-access {
  min-height: 40px;
  padding: .65rem 1rem;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
}

.public-access:hover,
.public-access:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--ink);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--display);
  text-decoration: none;
}

.public-brand:hover {
  color: inherit;
}

.public-brand__mark {
  width: 30px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--yellow);
}

.public-brand__mark i {
  width: 9px;
  height: 16px;
  display: block;
  border: 2px solid currentColor;
  border-top: 0;
}

.public-brand strong {
  font-size: 14px;
  letter-spacing: -.035em;
}

.opportunity-hero,
.hub-hero,
.catalog-hero {
  min-height: min(44rem, calc(100svh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(19rem, .6fr);
  border-bottom: 2px solid var(--ink);
}

.opportunity-hero__main,
.hub-hero > div,
.catalog-hero > div {
  min-width: 0;
  padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 6vw, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  background: var(--ink);
}

.opportunity-breadcrumb {
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  color: color-mix(in srgb, var(--white) 70%, transparent);
  font-family: var(--display);
  font-size: .58rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.opportunity-breadcrumb a {
  text-decoration: none;
}

.opportunity-breadcrumb a:hover {
  color: var(--yellow);
}

.opportunity-breadcrumb > span:last-child {
  color: var(--yellow);
}

.opportunity-hero h1,
.hub-hero h1,
.catalog-hero h1 {
  max-width: 17ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.opportunity-hero__main > p,
.hub-hero > div > p,
.catalog-hero > div > p {
  max-width: 64ch;
  margin: 2rem 0 0;
  color: color-mix(in srgb, var(--white) 84%, transparent);
}

.opportunity-hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-items: center;
}

.opportunity-hero__actions > a:last-child {
  max-width: 24rem;
  font-family: var(--display);
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.5;
}

.opportunity-action {
  min-height: 50px;
  padding: .8rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--yellow);
  font-family: var(--display);
  font-size: .62rem;
  font-weight: 750;
  line-height: 1.4;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}

.opportunity-action:hover,
.opportunity-action:focus-visible {
  color: var(--white);
  background: var(--blue);
  transform: translateY(-2px);
}

.time-fence,
.hub-hero > aside,
.catalog-hero > aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--yellow);
  transform-origin: right center;
  animation: fence-in 700ms var(--ease) both;
}

@keyframes fence-in {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0); }
}

.time-fence > div,
.hub-hero > aside > strong,
.catalog-hero > aside > strong {
  min-height: 22rem;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}

.time-fence > div > span,
.time-fence dt,
.hub-hero aside > span,
.hub-hero dt,
.catalog-hero aside > span,
.catalog-hero dt {
  font-family: var(--display);
  font-size: .56rem;
  font-weight: 750;
  text-transform: uppercase;
}

.time-fence > div > strong,
.hub-hero > aside > strong,
.catalog-hero > aside > strong {
  font-family: var(--mono);
  font-size: 58px;
  line-height: .8;
  letter-spacing: -.04em;
}

.hub-hero > aside > span,
.catalog-hero > aside > span {
  padding: 1rem clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--ink);
}

.time-fence dl,
.hub-hero dl,
.catalog-hero dl {
  margin: auto 0 0;
}

.time-fence dl > div,
.hub-hero dl > div,
.catalog-hero dl > div {
  padding: 1.05rem clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(7rem, .8fr) minmax(0, 1.2fr);
  gap: 1rem;
  border-bottom: 1px solid var(--ink);
}

.time-fence dl > div:last-child,
.hub-hero dl > div:last-child,
.catalog-hero dl > div:last-child {
  border-bottom: 0;
}

.time-fence dd,
.hub-hero dd,
.catalog-hero dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.opportunity-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 2px solid var(--ink);
  background: var(--white);
}

.opportunity-facts > div {
  min-height: 9.5rem;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  border-right: 1px solid var(--ink);
}

.opportunity-facts > div:nth-child(3n + 1) {
  background: var(--yellow);
}

.opportunity-facts > div:last-child {
  border-right: 0;
}

.opportunity-facts dt {
  font-family: var(--display);
  font-size: .52rem;
  font-weight: 750;
  text-transform: uppercase;
}

.opportunity-facts dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.opportunity-facts dd a {
  display: block;
}

.opportunity-layout,
.hub-reading {
  max-width: 96rem;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 9rem);
}

.opportunity-index,
.hub-reading__index {
  align-self: start;
  position: sticky;
  top: 2rem;
}

.opportunity-index > strong,
.hub-reading__index > strong {
  font-family: var(--display);
  font-size: .62rem;
  text-transform: uppercase;
}

.opportunity-index nav {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}

.opportunity-index nav a {
  padding: .7rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 600;
  text-decoration: none;
}

.opportunity-index > p,
.hub-reading__index {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid var(--ink);
  background: var(--yellow);
}

.opportunity-index > p strong,
.opportunity-index > p span {
  display: block;
}

.opportunity-index > p strong {
  margin-bottom: .6rem;
  font-family: var(--display);
  font-size: .54rem;
  text-transform: uppercase;
}

.opportunity-index > p span,
.hub-reading__index p {
  font-family: var(--mono);
  font-size: 14px;
}

.opportunity-reading,
.hub-reading article {
  max-width: 74ch;
}

.opportunity-reading__section,
.hub-reading article > section {
  padding: 0 0 3rem;
  margin: 0 0 3rem;
  border-bottom: 1px solid var(--ink);
  scroll-margin-top: 2rem;
}

.opportunity-reading__section:last-child,
.hub-reading article > section:last-child {
  margin-bottom: 0;
}

.opportunity-reading h2,
.hub-reading h2,
.source-disclosure h2,
.related-opportunities h2,
.hub-register h2,
.catalog-explainer h2,
.topic-catalog h2,
.catalog-method h2 {
  max-width: 18ch;
  margin: 0 0 1.2rem;
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.opportunity-reading p,
.hub-reading article p {
  margin: 0;
  color: #34332f;
  font-size: 1.06rem;
}

.source-disclosure {
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.25rem, 6vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
  color: var(--white);
  background: var(--blue);
  border-block: 2px solid var(--ink);
}

.source-disclosure p {
  max-width: 68ch;
  margin: 0;
  color: color-mix(in srgb, var(--white) 86%, transparent);
}

.source-disclosure .opportunity-action:hover {
  background: var(--white);
  color: var(--ink);
}

.related-opportunities,
.hub-register,
.topic-catalog {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5rem);
}

.related-opportunities > header,
.hub-register > header,
.topic-catalog > header {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  border-bottom: 2px solid var(--ink);
}

.related-opportunities > header p,
.hub-register > header p,
.topic-catalog > header p {
  max-width: 44ch;
  margin: 0 0 1.2rem;
}

.opportunity-list {
  border-top: 1px solid var(--ink);
}

.opportunity-card {
  min-height: 12rem;
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) 14rem;
  gap: 2rem;
  align-items: start;
  border-bottom: 1px solid var(--ink);
}

.opportunity-card > div {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-family: var(--mono);
  font-size: .7rem;
}

.opportunity-card > div > span {
  color: var(--blue);
}

.opportunity-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.28;
  letter-spacing: -.02em;
}

.opportunity-card h3 a {
  text-decoration: none;
}

.opportunity-card > p {
  grid-column: 2;
  margin: .8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.opportunity-card > p a {
  padding: .2rem .45rem;
  border: 1px solid var(--ink);
  font-family: var(--display);
  font-size: .48rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.opportunity-card footer {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
}

.opportunity-card footer strong {
  font-family: var(--mono);
  font-size: 14px;
}

.opportunity-card footer a {
  font-family: var(--display);
  font-size: .54rem;
  font-weight: 700;
  text-transform: uppercase;
}

.opportunity-empty {
  min-height: 12rem;
  margin: 0;
  padding: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--white);
  text-align: center;
}

.earlier-access {
  padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 6vw, 7rem);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  color: var(--white);
  background: var(--red);
  border-block: 2px solid var(--ink);
}

.earlier-access p {
  max-width: 16ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 80px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.035em;
}

.earlier-access a {
  min-height: 48px;
  padding: .8rem 1rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--white);
  font-family: var(--display);
  font-size: .62rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.earlier-access a:hover {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--ink);
}

.catalog-explainer,
.catalog-method {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 8vw, 10rem);
  border-bottom: 2px solid var(--ink);
}

.catalog-explainer p,
.catalog-method p {
  max-width: 72ch;
  margin: 1.2rem 0 0;
  font-size: 1.08rem;
}

.catalog-method {
  color: var(--white);
  background: var(--ink);
}

.catalog-method p {
  color: color-mix(in srgb, var(--white) 84%, transparent);
}

.catalog-method a {
  margin-top: 1.5rem;
  display: inline-block;
  color: var(--yellow);
  font-family: var(--display);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.topic-catalog > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.topic-catalog section {
  min-width: 0;
  padding: 1.2rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.topic-catalog h3 {
  min-height: 3rem;
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: .68rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.topic-catalog ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-catalog li a {
  padding: .55rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .7rem;
  border-top: 1px solid var(--line-soft);
  text-decoration: none;
}

.topic-catalog li strong {
  font-family: var(--mono);
  color: var(--blue);
}

.public-footer {
  padding: 3rem clamp(1.25rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) 12rem 12rem;
  gap: 3rem;
  color: var(--white);
  background: var(--ink);
}

.public-footer p {
  color: color-mix(in srgb, var(--white) 72%, transparent);
}

.public-footer nav {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.public-footer nav strong {
  margin-bottom: .4rem;
  color: var(--yellow);
  font-family: var(--display);
  font-size: .58rem;
  text-transform: uppercase;
}

.public-footer nav a {
  color: var(--white);
}

.back-to-top {
  width: 48px;
  height: 48px;
  padding: 0;
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font: 600 1.2rem var(--mono);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), background 220ms var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--white);
  background: var(--blue);
}

@media (max-width: 980px) {
  .public-header {
    grid-template-columns: auto 1fr;
  }

  .public-header nav {
    display: none;
  }

  .public-access {
    justify-self: end;
  }

  .opportunity-hero,
  .hub-hero,
  .catalog-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .time-fence > div,
  .hub-hero > aside > strong,
  .catalog-hero > aside > strong {
    min-height: 14rem;
  }

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

  .opportunity-facts > div:nth-child(3) {
    border-right: 0;
  }

  .opportunity-facts > div:nth-child(-n + 3) {
    border-bottom: 1px solid var(--ink);
  }

  .opportunity-layout,
  .hub-reading {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .opportunity-index,
  .hub-reading__index {
    position: static;
  }

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

  .source-disclosure {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .public-header {
    min-height: 64px;
    gap: 1rem;
  }

  .public-brand strong {
    font-size: .7rem;
  }

  .public-access {
    min-height: 38px;
    padding-inline: .7rem;
    font-size: .52rem;
  }

  .opportunity-hero__main,
  .hub-hero > div,
  .catalog-hero > div {
    padding-block: 3.5rem;
  }

  .opportunity-hero h1,
  .hub-hero h1,
  .catalog-hero h1 {
    font-size: 32px;
  }

  .opportunity-hero__actions,
  .earlier-access {
    align-items: stretch;
    flex-direction: column;
  }

  .opportunity-action {
    width: 100%;
  }

  .opportunity-facts {
    grid-template-columns: 1fr;
  }

  .opportunity-facts > div,
  .opportunity-facts > div:nth-child(3) {
    min-height: 7.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .opportunity-facts > div:nth-child(odd) {
    background: var(--yellow);
  }

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

  .opportunity-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .opportunity-card > p,
  .opportunity-card footer {
    grid-column: 1;
    grid-row: auto;
  }

  .opportunity-card footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .related-opportunities > header,
  .hub-register > header,
  .topic-catalog > header {
    display: block;
  }

  .topic-catalog > div {
    grid-template-columns: 1fr;
  }

  .public-footer {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
