.cmp-vs-page {
  --vsx-ink: var(--on-surface);
  --vsx-muted: var(--on-surface-variant);
  --vsx-panel: var(--surface-bright);
  --vsx-line: color-mix(in srgb, var(--on-surface-variant) 16%, transparent);
  --vsx-rival: var(--info);
  color: var(--vsx-ink);
}

.cmp-vs-page > header,
.cmp-vs-page > section {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
  box-sizing: border-box;
}

.cmp-vs-page .vsx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.vsx-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-bottom: clamp(32px, 5vw, 64px);
}

.vsx-hero__copy {
  display: grid;
  gap: 24px;
  justify-items: start;
  min-width: 0;
}

.vsx-hero__title {
  display: grid;
  gap: 0;
  margin: 0;
  color: var(--vsx-ink);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: clamp(32px, 7.7vw, 37px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -1.2px;
}

.vsx-hero__top,
.vsx-hero__sub {
  display: block;
}

.vsx-hero__sub {
  font-size: inherit;
  line-height: 1.06;
  letter-spacing: inherit;
}

.vsx-hero__lede {
  margin: 0;
  max-width: 56ch;
  color: var(--vsx-muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
}

.vsx-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.cmp-vs-page .vsx-hero__cta a.hero-cta--secondary {
  padding-inline: 28px;
}

.vsx-vs {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--vsx-line);
  border-radius: 28px;
  background: radial-gradient(
    circle at 62% 45%,
    color-mix(in srgb, var(--primary) 20%, var(--vsx-panel)),
    var(--vsx-panel) 70%
  );
  box-sizing: border-box;
}

.vsx-vs__app {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.vsx-vs__tile {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: var(--vsx-rival);
}

.vsx-vs__tile img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}

.vsx-vs__name {
  color: var(--vsx-ink);
  font-size: 13px;
  font-weight: 600;
}

.vsx-vs__badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-container);
  color: var(--vsx-muted);
  font-size: 13px;
  font-weight: 600;
}

.vsx-vs__loo {
  width: 190px;
}

.cmp-vs-page > section.vsx-thesis {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-block: 44px;
}

.vsx-thesis__loo {
  width: 170px;
}

.vsx-thesis__text {
  display: grid;
  gap: 14px;
}

.vsx-thesis__text h2,
.vsx-import__text h2,
.vsx-h2 {
  margin: 0;
  color: var(--vsx-ink);
  text-wrap: balance;
}

.vsx-h2 {
  margin-bottom: 28px;
  text-align: center;
}

.vsx-thesis__text p,
.vsx-import__text p {
  margin: 0;
  max-width: 64ch;
  color: var(--vsx-muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
}

.vsx-import__text p {
  text-wrap: pretty;
}

.cmp-vs-page :is(.vsx-import__text, .anx-trip__text) p a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--primary) 50%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

@media (hover: hover) {
  .cmp-vs-page :is(.vsx-import__text, .anx-trip__text) p a:hover {
    color: var(--primary);
    text-decoration-color: currentColor;
  }
}

.cmp-vs-page :is(.vsx-import__text, .anx-trip__text) p a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 60%, transparent);
  outline-offset: 2px;
  border-radius: 4px;
}

.qzx-under {
  position: relative;
  display: inline-block;
}

.qzx-under::after {
  content: '';
  position: absolute;
  inset-inline: 2%;
  bottom: -4px;
  height: 7px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 30 1, 70 1, 98 5' stroke='%23000' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat 0 0 / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 30 1, 70 1, 98 5' stroke='%23000' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat 0 0 / 100% 100%;
}

.cmp-vs-page > section.vsx-comp {
  background: transparent;
}

.vsx-comp > .container {
  --container-pad: 0px;
  max-width: 820px;
  margin-inline: auto;
  padding: 0;
}

.vsx-comp .comp-row {
  grid-template-columns: minmax(0, 1fr) var(--comp-edu-w) var(--comp-col-w);
}

.vsx-comp .comp-eduloo-col {
  inset-inline-end: calc(var(--comp-pad-x) + var(--comp-col-w));
}

.vsx-comp .comp-tool-logo {
  filter: none;
}

.cmp-quizlet-page {
  --cmx-rival: #4255ff;
  --cmx-rival-soft: color-mix(in srgb, #4255ff 9%, var(--surface-bright));
}

body.theme-dark .cmp-quizlet-page {
  --cmx-rival: #9ba5ff;
  --cmx-rival-soft: color-mix(in srgb, #4255ff 16%, var(--surface-bright));
}

.cmp-vs-page .vsx-explore__lede {
  max-width: 58ch;
  margin: -12px auto 28px;
  color: var(--vsx-muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
}

.vsx-choose__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
  margin-inline: auto;
}

.vsx-choose__card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
}

.vsx-choose__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vsx-choose__head .action-card-title {
  margin: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.44px;
  line-height: 1.15;
}

.vsx-choose__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
}

.vsx-choose__logo img {
  width: 100%;
  height: 100%;
}

.vsx-choose__logo--rival {
  background: var(--vsx-rival);
}

.vsx-choose__logo--rival img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.vsx-choose__sub {
  display: block;
  color: var(--vsx-muted);
  font-size: 13px;
  font-weight: 400;
}

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

.vsx-checks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  color: var(--vsx-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.vsx-checks .mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: color-mix(in srgb, var(--success) 70%, var(--on-surface));
}

.vsx-checks .mark.is-accent {
  background: var(--primary-fill, var(--primary));
  color: var(--on-primary);
}

.vsx-checks .mark .icon {
  font-size: 11px;
}

.vsx-choose__cta {
  margin: 4px 0 0;
  justify-content: flex-start;
}

.vsx-tools .stt-bento {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vsx-tools .stt-tile.vsx-tile {
  height: 500px;
  padding: 30px 16px 0;
  text-decoration: none;
}

.vsx-tools .vsx-tile:nth-child(1) {
  --stt-px: 0px;
}

.vsx-tools .vsx-tile:nth-child(2) {
  --stt-px: -305px;
}

.vsx-tools .vsx-tile:nth-child(3) {
  --stt-px: -610px;
}

.vsx-tools .vsx-tile:nth-child(4) {
  --stt-px: -915px;
}

.vsx-tools .vsx-tile .vsx-tile__title {
  margin: 0;
  max-width: 16ch;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.12;
}

.vsx-tile__link {
  margin-top: 10px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
}

.vsx-tile__stage {
  align-items: flex-start;
  margin-top: 18px;
}

.base-phone-3d.vsx-phone {
  --phone-3d-tilt: rotateY(-3deg) rotateX(9deg) rotateZ(0deg);
}

.vsx-phone .base-phone-3d__shadow {
  transform: translateX(10px) scaleX(1);
}

.base-phone-3d.vsx-phone--tile {
  --phone-3d-w: 176px;
  --phone-3d-r: 30px;
  padding: 0 20px;
}

.cmp-vs-page > section.vsx-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 20px;
}

.vsx-import__text {
  display: grid;
  gap: 12px;
}

.vsx-import__link {
  justify-self: start;
  color: var(--primary-text, var(--primary));
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.vsx-import__stage {
  display: grid;
  justify-items: center;
}

.base-phone-3d.vsx-phone--import {
  --phone-3d-w: 190px;
  --phone-3d-r: 32px;
  padding: 6px 24px 18px;
}

@media (min-width: 768px) {
  .vsx-hero__title {
    font-size: clamp(44px, 4.4vw, 62px);
    letter-spacing: clamp(-2.17px, -0.154vw, -1.54px);
  }
}

@media (max-width: 1239px) {
  .vsx-tools .stt-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .vsx-hero,
  .vsx-choose__grid,
  .cmp-vs-page > section.vsx-thesis,
  .cmp-vs-page > section.vsx-import {
    grid-template-columns: minmax(0, 1fr);
  }

  .cmp-vs-page > section.vsx-thesis {
    justify-items: center;
    gap: 20px;
  }

  .vsx-thesis__loo {
    width: 120px;
  }

  .vsx-vs {
    min-height: 220px;
  }
}

@media (max-width: 767px) {
  .vsx-tools .stt-bento {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
  }

  .vsx-tools .stt-tile.vsx-tile {
    height: 460px;
  }
}
