@font-face {
  font-family: "Wordmark";
  src: url("/fonts/roboto-black-italic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1d2963;
  --navy-deep: #141c47;
  --coral: #fd705b;
  --coral-hover: #fe8a78;
  --teal: #74d5d2;
  --charcoal: #252525;
  --white: #ffffff;
  --mist: #eef1f8;
  --line: #d8dded;
  --muted: #4a5068;
  --on-navy: #dfe4f5;
  --display: "Wordmark", "Roboto", "Arial Black", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --wrap: 72rem;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 5.25rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
}

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

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #b8321e;
}

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

.on-navy :focus-visible {
  outline-color: var(--teal);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--white);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip:focus {
  left: 0.5rem;
}

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: var(--step-4);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-family: var(--body);
  font-style: normal;
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: 0;
  line-height: 1.3;
}

p {
  margin: 0;
}

/* Header */

.site-header {
  background: var(--navy);
  color: var(--white);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.35rem;
  margin-right: auto;
}

.brand:hover {
  color: var(--white);
}

.brand img {
  width: 2.4rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  color: var(--on-navy);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.button-primary {
  background: var(--coral);
  color: var(--charcoal);
}

.button-primary:hover {
  background: var(--coral-hover);
  color: var(--charcoal);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.button-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.button-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.button-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.site-nav .button {
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  color: var(--charcoal);
}

.site-nav .button:hover {
  color: var(--charcoal);
  text-decoration: none;
}

/* Hero */

.hero {
  background: var(--navy);
  color: var(--white);
  padding-top: clamp(3rem, 7vw, 6rem);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(6rem, 16vw, 14rem);
  background: var(--white);
}

.hero-copy {
  max-width: 50rem;
}

.hero h1 {
  color: var(--white);
}

.hero h1 .second {
  display: block;
  color: var(--coral);
}

.lede {
  margin-top: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--on-navy);
  max-width: 40rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.fine {
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--on-navy);
}

.stage {
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.shot {
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(20, 28, 71, 0.55),
    0 0 0 1px rgba(20, 28, 71, 0.12);
  background: var(--white);
}

.terminal {
  position: absolute;
  left: clamp(-1rem, -2vw, 0rem);
  bottom: -2.5rem;
  width: min(27rem, 60%);
  background: var(--charcoal);
  color: #f2f2f2;
  border-radius: 0.8rem;
  padding: 1rem 1.2rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55);
}

.terminal-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.terminal-bar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #4a4a4a;
}

.terminal p + p {
  margin-top: 0.35rem;
}

.terminal .prompt {
  color: var(--white);
}

.terminal .prompt::before {
  content: "> ";
  color: var(--coral);
}

.terminal .tool {
  color: var(--teal);
}

.terminal .note {
  color: #b9b9b9;
}

.js .terminal p {
  opacity: 0;
}

.js .terminal p.shown {
  opacity: 1;
  transition: opacity 0.25s ease-out;
}

/* Works with */

.works {
  padding: 5.5rem 0 3rem;
}

.works p {
  font-weight: 600;
  color: var(--muted);
}

.works ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--navy);
}

/* Sections */

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-mist {
  background: var(--mist);
}

.section-head {
  max-width: 44rem;
}

.section-head p {
  margin-top: 1.2rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split-wide {
  grid-template-columns: 5fr 7fr;
}

.split > * {
  min-width: 0;
}

.split .shot {
  box-shadow:
    0 20px 40px -18px rgba(20, 28, 71, 0.35),
    0 0 0 1px rgba(20, 28, 71, 0.1);
}

.points {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.points li {
  padding-left: 1.4rem;
  position: relative;
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--coral);
}

.points strong {
  color: var(--navy);
}

/* The meter comparison */

.meter {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--navy);
}

.meter div {
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-right: 1px solid var(--line);
}

.meter div + div {
  padding-left: 1.5rem;
}

.meter div:last-child {
  border-right: 0;
}

.meter dt {
  font-weight: 700;
  color: var(--muted);
}

.meter dd {
  margin: 0.5rem 0 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--navy);
}

.meter dd small {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--body);
  font-style: normal;
  font-weight: 400;
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--muted);
}

.meter .ours {
  background: var(--navy);
  color: var(--white);
  padding-left: 1.5rem;
}

.meter .ours dt {
  color: var(--teal);
}

.meter .ours dd {
  color: var(--coral);
}

.meter .ours dd small {
  color: var(--on-navy);
}

.source {
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* Code snippet */

.snippet {
  margin-top: 2rem;
  background: var(--charcoal);
  color: #f2f2f2;
  border-radius: 0.7rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  overflow-x: auto;
}

.snippet code {
  white-space: pre;
}

/* Formats */

.formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.formats > div {
  padding: 1.8rem 1.8rem 0 0;
}

.formats > div + div {
  padding-left: 1.8rem;
  border-left: 1px solid var(--line);
}

.formats p {
  margin-top: 0.6rem;
  color: var(--muted);
}

/* Feature list */

.features {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 3rem;
}

.features p {
  margin-top: 0.4rem;
  color: var(--muted);
}

/* Download */

.download {
  background: var(--navy);
  color: var(--white);
}

.download h2 {
  color: var(--white);
}

.download .section-head p {
  color: var(--on-navy);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.platform {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.9rem;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.platform h3 {
  color: var(--white);
}

.platform p {
  color: var(--on-navy);
  font-size: var(--step--1);
}

.platform .button {
  margin-top: auto;
}

.platform.suggested {
  border: 2px solid var(--coral);
}

.download .fine a {
  color: var(--white);
}

/* Compare page */

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.page-hero h1 {
  font-size: var(--step-3);
}

.page-hero p {
  margin-top: 1.2rem;
  max-width: 44rem;
  font-size: var(--step-1);
  color: var(--on-navy);
}

.table-scroll {
  overflow-x: auto;
  margin-top: 2.5rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 52rem;
  font-size: 0.95rem;
}

caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 0.8rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

thead th {
  border-bottom: 3px solid var(--navy);
  font-size: var(--step-0);
}

tbody th {
  font-weight: 600;
  width: 22%;
}

td.ours,
th.ours {
  background: var(--mist);
}

.yes {
  font-weight: 700;
  color: #0b6b3a;
}

.no {
  font-weight: 700;
  color: #a12a17;
}

.sources {
  margin-top: 2rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.sources li {
  margin-top: 0.3rem;
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 3rem;
  font-size: var(--step-2);
}

.prose p,
.prose ul {
  margin-top: 1rem;
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy);
  padding: 3rem 0;
  font-size: var(--step--1);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--on-navy);
}

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

/* Small screens */

@media (max-width: 62rem) {
  .split,
  .split-wide {
    grid-template-columns: 1fr;
  }

  .features,
  .platforms,
  .formats {
    grid-template-columns: 1fr 1fr;
  }

  .formats > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

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

  .meter div:nth-child(2) {
    border-right: 0;
  }

  .meter div:nth-child(3) {
    padding-left: 0;
  }

  .terminal {
    position: static;
    width: auto;
    margin-top: 1rem;
  }
}

@media (max-width: 40rem) {
  .site-nav a:not(.button) {
    display: none;
  }

  .features,
  .platforms,
  .formats,
  .meter {
    grid-template-columns: 1fr;
  }

  .formats > div,
  .formats > div + div {
    border-left: 0;
    padding-left: 0;
  }

  .meter div,
  .meter div + div {
    border-right: 0;
    padding-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .meter .ours {
    padding-left: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .terminal p {
    opacity: 1;
  }

  .js .terminal p.shown {
    transition: none;
  }
}

.agents-detail {
  margin-top: 4rem;
}

.section-lede {
  margin-top: 1.2rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tm {
  font-size: 0.5em;
  vertical-align: super;
  margin-left: 0.1em;
}
