@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;
  /* Anchor links land below the sticky header. */
  scroll-padding-top: 5.5rem;
}

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 {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: var(--white);
  transition: box-shadow 0.2s ease;
}

/* The shadow shows only once the page has scrolled under the header. */
.site-header.is-stuck {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px -6px rgba(12, 16, 40, 0.45);
}

.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(--teal);
  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);
}

.chat {
  position: absolute;
  left: clamp(-3rem, -3vw, 0rem);
  bottom: -9rem;
  width: min(23rem, 40%);
  background: var(--white);
  color: var(--charcoal);
  border-radius: 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  box-shadow:
    0 24px 48px -16px rgba(20, 28, 71, 0.55),
    0 0 0 1px rgba(20, 28, 71, 0.1);
  overflow: hidden;
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--mist);
  font-weight: 700;
  color: var(--navy);
}

.msg {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.5rem 1rem;
}

.msg:first-of-type {
  padding-top: 1rem;
}

.msg:last-child {
  padding-bottom: 1.1rem;
}

.avatar {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
}

.avatar-you {
  display: grid;
  place-items: center;
  background: var(--navy);
}

.avatar-you svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--white);
}

.msg-you {
  flex-direction: row-reverse;
}

.msg-you p {
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 0.8rem;
  border-radius: 0.9rem 0.2rem 0.9rem 0.9rem;
}

.msg-app > p,
.msg-app > div {
  background: rgba(116, 213, 210, 0.28);
  padding: 0.55rem 0.8rem;
  border-radius: 0.2rem 0.9rem 0.9rem 0.9rem;
}

.msg-app ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.msg-app li::marker {
  color: var(--coral);
}

.js .chat .msg,
.js .chat li {
  opacity: 0;
}

.js .chat .shown {
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

.stage {
  display: grid;
}

.slide {
  grid-area: 1 / 1;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.7s ease,
    visibility 0s linear 0.7s;
}

.slide.is-current {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease;
}

.slides-pause {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 28, 71, 0.75);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: -0.1em;
  cursor: pointer;
}

.slides-pause[aria-pressed="true"] {
  background: var(--coral);
  color: var(--charcoal);
}

/* Works with */

.works {
  padding: 15rem 0 4.5rem;
}

@media (max-width: 62rem) {
  .works {
    padding-top: 4.5rem;
  }
}

.works h2 {
  font-size: var(--step-3);
  color: var(--navy);
}

.works ul {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.works li {
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: var(--step-1);
  font-weight: 700;
}

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

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

.pill-teal {
  background: var(--teal);
  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 {
  overflow-x: visible;
}

.snippet code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* 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;
}

/* Thank-you page: the donation code to paste into the app */

.donation-code-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--mist);
}

.donation-code-box code {
  flex: 1 1 16rem;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  user-select: all;
}

.donation-code-status {
  min-height: 1.5em;
  color: var(--muted);
}

/* 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;
  }

  .chat {
    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 .chat .msg,
  .js .chat li {
    opacity: 1;
  }

  .js .chat .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.45em;
  vertical-align: 0.9em;
  line-height: 0;
}

.steps-box {
  background: var(--mist);
  border-left: 4px solid var(--coral);
  border-radius: 0 0.9rem 0.9rem 0;
  padding: 2rem;
}

.steps {
  margin: 1.2rem 0 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.steps li::marker {
  font-weight: 700;
  color: var(--navy);
}

.steps-box .source {
  margin-top: 1.5rem;
}

/* Stock picture carousel */

.carousel {
  margin-top: 4rem;
}

.carousel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.carousel-buttons {
  display: flex;
  gap: 0.5rem;
}

.carousel-button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

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

.carousel-track {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0 0 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 19rem);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.stock-card {
  scroll-snap-align: start;
}

.stock-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.8rem;
  background: var(--mist);
}

.card-art img {
  object-fit: contain;
  padding: 0.75rem;
}

.stock-kind {
  margin-top: 0.8rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
}

.stock-card h3 {
  margin-top: 0.1rem;
  font-size: var(--step-0);
}

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

/* Why Make It Pretty */

.why {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.why-head {
  position: sticky;
  top: 2rem;
}

.why-head .button {
  margin-top: 2rem;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2.5rem;
}

.why-list li {
  border-top: 3px solid var(--coral);
  padding-top: 1.2rem;
}

.why-list p {
  margin-top: 0.5rem;
  color: var(--muted);
}

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

  .why-head {
    position: static;
  }
}

@media (max-width: 40rem) {
  .why-list {
    grid-template-columns: 1fr;
  }
}

.download-logo {
  width: min(22rem, 70%);
  margin: 4rem auto 0;
}

.footer-brand {
  display: grid;
  gap: 0.8rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img:first-child {
  width: 2.5rem;
  height: 2.5rem;
}

.footer-logo img:last-child {
  width: auto;
  height: 1.9rem;
}

.carousel-note {
  margin-top: 0.4rem;
  max-width: 40rem;
  color: var(--muted);
}

/* Carousel: no scrollbar (the arrows and swipes move it), click to enlarge */

.carousel-track {
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-pause {
  font-size: 0.8rem;
  letter-spacing: -0.1em;
}

.carousel-pause[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}

.stock-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0.8rem;
  cursor: pointer;
}

.stock-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: rgba(20, 28, 71, 0.55);
  color: var(--white);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.stock-open:hover .stock-zoom,
.stock-open:focus-visible .stock-zoom {
  opacity: 1;
}

/* Lightbox */

.lightbox {
  width: min(64rem, 100vw - 2rem);
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: var(--white);
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(12, 16, 40, 0.85);
}

.lightbox figure {
  margin: 0;
}

.lightbox-image {
  width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border-radius: 1rem 1rem 0 0;
  background: var(--mist);
}

.lightbox-caption {
  padding: 0.9rem 1.2rem 1.1rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.lightbox-caption strong {
  color: var(--charcoal);
}

.lightbox-button,
.lightbox-close {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.lightbox-button:hover,
.lightbox-close:hover {
  background: var(--coral);
  color: var(--charcoal);
}

.lightbox-prev {
  left: -1.5rem;
  top: 45%;
}

.lightbox-next {
  right: -1.5rem;
  top: 45%;
}

.lightbox-close {
  right: -1rem;
  top: -1rem;
}

@media (max-width: 40rem) {
  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-close {
    right: 0.5rem;
    top: 0.5rem;
  }
}

/* The chat tells a story: the person (navy), the work (mist), the result (coral). */
.msg-done > p {
  background: #cf3b24;
  color: var(--white);
  font-weight: 600;
}

/* The MCP details sit on their own card inside the agents section. */
.agents-detail {
  background: var(--white);
  border-radius: 1.2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow:
    0 18px 40px -24px rgba(20, 28, 71, 0.35),
    0 0 0 1px rgba(20, 28, 71, 0.06);
}

.agents-detail h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: var(--step-2);
  color: var(--navy);
}

/* The carousel sits on its own tinted panel inside the stock section. */
.carousel {
  background: var(--mist);
  border-radius: 1.2rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: inset 0 0 0 1px rgba(20, 28, 71, 0.06);
}

.carousel .stock-card img {
  background: var(--white);
}

/* The engine section's points are cards. */
#engine .features li {
  background: var(--mist);
  border-radius: 1rem;
  border-top: 4px solid var(--teal);
  padding: 1.4rem 1.5rem 1.6rem;
  box-shadow:
    0 14px 30px -20px rgba(20, 28, 71, 0.35),
    0 0 0 1px rgba(20, 28, 71, 0.06);
}

#engine .features {
  gap: 1.5rem;
}

/* The full feature list gets the same card treatment, on the tinted section. */
#features .features {
  gap: 1.5rem;
}

#features .features li {
  background: var(--white);
  border-radius: 1rem;
  border-top: 4px solid var(--coral);
  padding: 1.4rem 1.5rem 1.6rem;
}

/* Comparison marks: a check, a dash or a cross in a colored circle. */
.mark {
  display: inline-grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  vertical-align: -0.2rem;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}

.mark::before {
  font-family: var(--body);
}

.mark-good {
  background: #0b7a43;
}

.mark-good::before {
  content: "\2713";
}

.mark-mid {
  background: #b26a00;
}

.mark-mid::before {
  content: "\2013";
}

.mark-bad {
  background: #c62828;
}

.mark-bad::before {
  content: "\2715";
}

td {
  line-height: 1.5;
}

td .mark {
  float: left;
  margin-top: 0.1rem;
}

td:has(.mark) {
  padding-left: 0.85rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.legend > span {
  display: inline-flex;
  align-items: center;
}

.legend .mark {
  margin-right: 0.4rem;
}

.card-sub {
  margin-top: 0.5rem;
  color: var(--muted);
}

#connect {
  scroll-margin-top: 1.5rem;
}

.snippet-title {
  margin: 0;
  font-size: var(--step-1);
  color: var(--navy);
}

.snippet-label {
  margin-top: 1.4rem;
  font-weight: 700;
  color: var(--charcoal);
}

.snippet-label + .snippet {
  margin-top: 0.5rem;
}

/* Donations */

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

.donate-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.donate-amount {
  background: var(--coral);
  color: var(--charcoal);
  min-width: 5.5rem;
}

.donate-amount:hover {
  background: var(--teal);
  color: var(--charcoal);
}

.star-button {
  margin-top: 1.5rem;
}

@media (max-width: 62rem) {
  .donate-inner {
    grid-template-columns: 1fr;
  }
}

/* Design to code showcase */

.code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.code-tab {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.code-tab[aria-selected="true"] {
  background: var(--navy);
  color: var(--white);
}

.code-panel {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
  background: var(--white);
  border-radius: 1.2rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow:
    0 18px 40px -24px rgba(20, 28, 71, 0.35),
    0 0 0 1px rgba(20, 28, 71, 0.06);
}

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

.code-design {
  display: grid;
  place-items: center;
  background: var(--mist);
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: 100%;
}

.code-design img {
  max-width: 100%;
  height: auto;
}

.code-file {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--navy);
}

.code-file span {
  font-family: var(--body);
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--muted);
}

.code-snippet {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.55;
}

.code-points {
  margin-top: 2rem;
}

@media (max-width: 62rem) {
  .code-panel {
    grid-template-columns: 1fr;
  }
}

/* What makes Make It Pretty different (comparison page) */

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

.only-list li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--mist);
  border-radius: 1rem;
  border-top: 4px solid var(--coral);
  padding: 1.4rem 1.4rem 1.5rem;
}

.only-list p {
  color: var(--muted);
  flex: 1;
}

.only-list a {
  font-weight: 700;
}

.why-compare {
  margin-top: 1rem;
}

.why-compare a {
  font-weight: 700;
}

@media (max-width: 62rem) {
  .only-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 40rem) {
  .only-list {
    grid-template-columns: 1fr;
  }
}
