/* Keep homepage shortcuts and dense comparison controls readable on narrow boards. */
.hv [id^="mechanism"],
.hv [id^="screens"] {
  scroll-margin-block-start: 64px;
}

.hv .home-support-link {
  min-height: 44px !important;
  border-radius: 5px;
  white-space: normal !important;
  box-sizing: border-box;
  max-inline-size: 100%;
}

.hv [id^="services"] span:has(> span > img):has(> div:empty) > span:last-child {
  color: #586070 !important;
}

@media (max-width: 1023.98px) {
  .hv [id^="services"] span:has(> span > img):has(> div:empty) {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 8px !important;
  }

  .hv [id^="services"] span:has(> span > img) > div:empty {
    display: none;
  }
}

@media (max-width: 599.98px) {
  .hv :is([data-block="compare"] figure, figure[data-block="featmedia"]) > div:first-child {
    gap: 8px !important;
    padding-block: 6px !important;
  }

  .hv :is([data-block="compare"] figure, figure[data-block="featmedia"]) > div:first-child > span:first-of-type {
    flex: 1 1 0;
    white-space: normal !important;
    overflow: visible !important;
    line-height: 1.35;
  }

  .hv :is([data-block="compare"] figure, figure[data-block="featmedia"]) > div:first-child > span:empty {
    display: none;
  }

  /* The exact face and outfit results already appear in the visible caption. */
  .hv [data-block="compare"] .cmp > div[aria-hidden="true"] > div:has(> span + span) {
    display: none !important;
  }

  .hv .vs-bstrip {
    flex-wrap: wrap;
    padding-block: 5px;
  }

  .hv .vs-tfoot > span:first-child {
    align-items: baseline !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .hv .vs-tfoot [data-vs-tfoot] {
    overflow-wrap: anywhere;
  }
}

/* Present the steps as a reading sequence with one accent for the guide links. */
.hv :is(#guide, #guide--t, #guide--m) {
  --guide-pad: clamp(13px, 1.35vw, 18px);
  padding-block: clamp(36px, 4.4vw, 58px) !important;
  background: #f5f3ee !important;
}

.hv :is(#guide, #guide--t, #guide--m) > .wrap > h2 { margin-block-start: 0 !important; }

.hv :is(#guide, #guide--t, #guide--m) > .wrap > .lead { margin-block-start: 9px !important; }

.hv :is(#guide, #guide--t, #guide--m) > .wrap > div:has(> .card) {
  gap: 0 clamp(14px, 2vw, 26px) !important;
  margin-block-start: clamp(18px, 2.3vw, 26px) !important;
}

.hv :is(#guide, #guide--t, #guide--m) .card {
  padding: var(--guide-pad) 0 !important;
  gap: 10px !important;
  border: 0 !important;
  border-block-start: 1px solid var(--home-rule) !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.hv :is(#guide, #guide--t, #guide--m) .card > span:first-child > span:first-child {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px !important;
}

.hv :is(#guide, #guide--t, #guide--m) .card > span:first-child > span:first-child > span:first-child > span:first-child {
  inline-size: 24px !important;
  block-size: 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.hv :is(#guide, #guide--t, #guide--m) .card > span:first-child > span:first-child svg {
  stroke: var(--home-accent);
}

.hv :is(#guide, #guide--t, #guide--m) .card > span:first-child > span:first-child .mono {
  color: var(--home-muted) !important;
  font-variant-numeric: tabular-nums;
}

.hv :is(#guide, #guide--t, #guide--m) .card > span:first-child > span:first-child > .mono:last-child {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 1.35;
  white-space: normal !important;
}

.hv :is(#guide, #guide--t, #guide--m) .card > span:first-child > span:nth-child(2) {
  font-size: clamp(17px, 1.45vw, 19px) !important;
  line-height: 1.24 !important;
  text-wrap: pretty;
}

.hv :is(#guide, #guide--t, #guide--m) .card > span:first-child > span:nth-child(3) {
  font-size: 14px !important;
  line-height: 1.48 !important;
}

.hv :is(#guide, #guide--t, #guide--m) .card > span:last-child {
  gap: 6px !important;
  padding-block-start: 4px !important;
  border: 0 !important;
}

.hv :is(#guide, #guide--t, #guide--m) .card > span:last-child > .mono {
  max-inline-size: 100%;
  border: 1px solid var(--home-rule) !important;
  border-radius: 3px !important;
  background: transparent !important;
  overflow-wrap: anywhere;
}

.hv :is(#guide, #guide--t, #guide--m) .card a {
  min-height: 44px;
  box-sizing: border-box;
  justify-content: center;
  padding-inline: 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--home-accent) !important;
  font-size: 13px !important;
  text-underline-offset: 3px;
}

.hv :is(#guide, #guide--t, #guide--m) .card a:hover { text-decoration: underline; }

.hv :is(#guide, #guide--t, #guide--m) > .wrap > div:last-child:not(:has(> .card)) {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-block-start: clamp(14px, 2vw, 20px) !important;
  padding: 15px 0 !important;
  border: 0 !important;
  border-block-start: 1px solid var(--home-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

@media (min-width: 1200px) {
  .hv #guide > .wrap > div:has(> .card) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 699.98px) {
  .hv :is(#guide, #guide--t, #guide--m) > .wrap > div:has(> .card) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hv :is(#guide, #guide--t, #guide--m) > .wrap > div:last-child:not(:has(> .card)) {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hv :is(#guide, #guide--t, #guide--m) > .wrap > div:last-child:not(:has(> .card)) > a {
    grid-column: 1 / -1;
    justify-self: start;
  }
}



/* Keep related reel links easy to tap without giving them the weight of chapter buttons. */
.hv .creator-reel-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 2px;
  text-underline-offset: .22em;
}

/* Give feature evidence enough room to read beside the explanation. */
.hv :is(#features, #features--t, #features--m) button[data-x*="~ft:"] {
  min-block-size: 44px;
  padding-block: 8px !important;
  line-height: 1.3;
}

.hv :is(#features, #features--t, #features--m) .wrap > div:has(> div > figure[data-block="featmedia"]) {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
  align-items: start !important;
  gap: clamp(18px, 2.55vw, 36px) !important;
}

.hv :is(#features, #features--t, #features--m) .wrap > div:has(> div > figure[data-block="featmedia"]) > div:first-child > span:last-child {
  color: #526074 !important;
}

@media (max-width: 1023.98px) {
  .hv :is(#catalogue--t, #catalogue--m) div:has(> .catbtn) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px !important;
  }

  .hv :is(#catalogue--t, #catalogue--m) div:has(> .catbtn) > span:first-child {
    grid-column: 1 / -1;
    padding-block-end: 9px !important;
    margin-block-end: 0 !important;
  }

  .hv :is(#catalogue--t, #catalogue--m) .catbtn {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    align-content: center;
    column-gap: 6px !important;
    row-gap: 2px !important;
    padding: 6px 7px !important;
    min-inline-size: 0;
    font-size: 13.5px !important;
  }

  .hv :is(#catalogue--t, #catalogue--m) .catbtn > span:first-child {
    grid-row: span 2;
    width: 18px !important;
  }

  .hv :is(#catalogue--t, #catalogue--m) .catbtn > span:last-child {
    white-space: normal !important;
    font-size: 11px !important;
    line-height: 1.2;
  }

}

@media (min-width: 800px) and (max-width: 1023.98px) {
  .hv #catalogue--t div:has(> .catbtn) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hv :is(#features--t, #features--m) .wrap > div:has(> div > figure[data-block="featmedia"]) {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: clamp(14px, 3.1vw, 24px) !important;
  }

  .hv :is(#features--t, #features--m) .wrap > div:has(> div > figure[data-block="featmedia"]) > div:first-child {
    display: contents !important;
  }

  .hv :is(#features--t, #features--m) .wrap > div > div:has(> figure[data-block="featmedia"]) {
    grid-row: 2;
  }
}

@media (max-width: 599.98px) {
  .hv #features--m div:has(> button[data-x*="~ft:"]) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px !important;
  }
}

/* Use quiet surfaces around screenshots, playback, and technical content. */
.hv {
  --home-rule: #d9d5cc;
  --home-muted: #555954;
  --home-accent: #a63a23;
  --home-charcoal: #171a1d;
  --home-dark-rule: #3f4245;
}

.hv .page > header > div:has([data-block="heromedia"]) {
  background: var(--home-charcoal) !important;
}

.hv .page > header .sec:has(> .wrap h1) {
  padding-block-start: clamp(36px, 5vw, 70px) !important;
}

.hv .page > header .wrap:has(> div > h1) {
  align-items: flex-start !important;
  text-align: start !important;
}

.hv .page > header .wrap > div:has(> h1) {
  align-items: flex-start !important;
  gap: clamp(13px, 1.3vw, 20px) !important;
}

.hv .page > header .wrap > div:has(> h1) > span:first-child {
  align-self: flex-start !important;
}

.hv .page > header .wrap > div:has(> h1) > div {
  justify-content: flex-start !important;
}

.hv [data-block="verbs"] {
  column-gap: 16px !important;
  row-gap: 0 !important;
}

.hv [data-block="verbs"] > a {
  min-height: 44px !important;
  padding-inline: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-underline-offset: 4px;
}

.hv [data-block="verbs"] > a:hover { text-decoration: underline; }

.hv [data-block="verbs"] > a svg { stroke: currentColor; }

@media (min-width: 1100px) {
  .hv-d .page > header .wrap > div:has(> h1) {
    display: grid !important;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: start !important;
    column-gap: clamp(30px, 4vw, 60px) !important;
    inline-size: 100%;
    max-inline-size: none !important;
  }

  .hv-d .page > header .wrap > div:has(> h1) > h1 {
    grid-area: 2 / 1 / span 3 / 2;
    font-size: clamp(3.1rem, 4.6vw, 4.3rem) !important;
  }

  .hv-d .page > header .wrap > div:has(> h1) > :is(p, div) {
    grid-column: 2;
  }

  .hv-d .page > header .wrap > div:has(> h1) > p { grid-row: 2; }

  .hv-d .page > header .wrap > div:has(> h1) > div:not([data-block]) { grid-row: 3; }

  .hv-d .page > header .wrap > div:has(> h1) > [data-block="verbs"] { grid-row: 4; }
}

.hv .creator-reel video {
  border-color: var(--home-dark-rule) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.hv .creator-reel-chapters {
  gap: 0 12px;
  border-block-end: 1px solid var(--home-dark-rule);
}

.hv .creator-reel-chapter-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-block-end: -5px;
  color: #d0d2ce;
  font-size: 13px;
  font-weight: 600;
}

.hv .creator-reel-chapter-heading > span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hv .creator-reel-chapters a {
  padding-inline: 6px;
  border: 0;
  border-block-start: 1px solid var(--home-dark-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hv .creator-reel-chapters a:hover {
  border-color: var(--home-dark-rule);
  background: #232629;
}

.hv .creator-reel-chapters a[aria-current="true"] {
  border-color: #e18e75;
  background: #2f2522;
  box-shadow: inset 0 1px #e18e75;
  color: #fff;
}

.hv .rail {
  box-sizing: border-box;
  display: flex;
  inline-size: min(1140px, calc(100% - 40px));
  margin-block-start: 10px !important;
  margin-inline: auto;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: auto;
  scrollbar-width: none;
  mask-image: none;
}

.hv .rail::-webkit-scrollbar { display: none; }

.hv .rail.is-looping:not(:focus-visible) {
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}

.hv .rail:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 3px;
}

.hv .rail-track {
  flex: 0 0 auto;
  animation: none;
}

.hv .rail-track > span {
  gap: 7px !important;
  padding-inline: clamp(12px, 1.2vw, 18px) !important;
  border-inline-end: 1px solid var(--home-rule);
  opacity: 1;
  filter: none;
  transform: none;
}

.hv .rail-track > span > span:nth-child(2) > span:first-child {
  font-size: 14px !important;
}

.hv .rail-caption {
  position: relative;
  box-sizing: border-box;
  display: grid !important;
  align-content: center;
  inline-size: min(1140px, calc(100% - 40px));
  min-block-size: 32px;
  margin-inline: auto;
  padding-inline: 40px;
}

.hv .rail-toggle {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 0;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  padding: 0;
  border: 1px solid var(--home-rule);
  border-radius: 50%;
  background: transparent;
  color: #555954;
}

.hv .rail-toggle:hover { background: #e9e8e3; color: #252624; }
.hv .rail-toggle svg { inline-size: 12px; block-size: 12px; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .hv .rail-toggle { display: none; }
}

.hv [data-block="problems"] > .card {
  padding: 14px 0 0 !important;
  border: 0 !important;
  border-block-start: 1px solid var(--home-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hv [data-block="problems"] > .card > .cap-media {
  padding: 0 !important;
  border: 1px solid var(--home-rule) !important;
  border-radius: 4px !important;
  background: #f2f1ec !important;
}

.hv [data-block="problems"] .cap-media img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.hv [data-block="problems"] .card > span:last-child > span:first-child {
  color: var(--home-accent) !important;
}

.hv :is([data-block="compare"] figure, figure[data-block="featmedia"]) {
  border-radius: 4px !important;
  box-shadow: none !important;
}

.hv :is([data-block="compare"] figure, figure[data-block="featmedia"]) > div:first-child {
  background: #232629 !important;
  box-shadow: none;
}

.hv figure[data-block="featmedia"] > a { background: #f0eee8 !important; }

.hv [data-block="compare"] .cmp > div[style*="radial-gradient"] { background: none !important; }

.hv :is(#gallery, #gallery--t, #gallery--m) {
  background: var(--home-charcoal) !important;
}

.hv :is(#gallery, #gallery--t, #gallery--m) .gframe {
  border: 0 !important;
  border-block-end: 1px solid var(--home-dark-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hv :is(#gallery, #gallery--t, #gallery--m) .gframe:hover {
  border-block-end-color: #de8a72 !important;
}

.hv :is(#gallery, #gallery--t, #gallery--m) .gallery-card-body {
  padding-inline: 0;
  border-block-start: 0;
}

.hv :is(#gallery, #gallery--t, #gallery--m) .gframe > span:first-child::after { content: none; }

.hv :is(#gallery, #gallery--t, #gallery--m) .gframe > span:first-child::before {
  box-shadow: none;
}

.hv :is(#gallery, #gallery--t, #gallery--m) .gallery-script-link {
  padding-inline: 0;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hv [data-vs-section] { background: #fff !important; }

.hv :is(#features, #features--t, #features--m) .wrap > div:has(> div > figure[data-block="featmedia"]) {
  background: #f5f3ee !important;
  border-color: var(--home-rule) !important;
  border-radius: 0 !important;
}

.hv [data-block="chpic"] > div,
.hv [data-block="chpic"] > div > div > div {
  border-radius: 4px !important;
  box-shadow: none !important;
}

.hv :is(#catalogue, #catalogue--t, #catalogue--m) {
  background: #f5f3ee !important;
  border-block-color: var(--home-rule) !important;
}

.hv :is(#catalogue, #catalogue--t, #catalogue--m) :is(.card, div:has(> .catbtn)) {
  border-color: var(--home-rule) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.hv :is(#catalogue, #catalogue--t, #catalogue--m) .catbtn {
  border-radius: 3px !important;
  box-shadow: none !important;
}

.hv :is(#catalogue, #catalogue--t, #catalogue--m) .catbtn[aria-pressed="false"] {
  background: transparent !important;
}

.hv :is(#catalogue, #catalogue--t, #catalogue--m) .catbtn[aria-pressed="false"]:hover {
  background: #f0eee8 !important;
}

.hv .catalogue-picker {
  display: none;
}

@media (max-width: 799.98px) {
  .hv :is(#catalogue--t, #catalogue--m) div.has-catalogue-picker:has(> .catbtn) {
    display: block !important;
    padding: 12px !important;
  }

  .hv :is(#catalogue--t, #catalogue--m) .has-catalogue-picker > :is(span:first-child, .catbtn) {
    display: none !important;
  }

  .hv .catalogue-picker {
    display: grid;
    gap: 6px;
    color: var(--home-muted);
    font-size: 13px;
    font-weight: 600;
  }

  .hv .catalogue-picker select {
    inline-size: 100%;
    min-inline-size: 0;
    min-block-size: 44px;
    padding-inline: 10px;
    border: 1px solid #a9a59e;
    border-radius: 3px;
    background: #fff;
    color: #17181c;
    font: inherit;
    font-size: 16px;
  }

  .hv .catalogue-picker select:focus-visible {
    outline: 2px solid var(--home-accent);
    outline-offset: 2px;
  }
}

.hv :is(#services, #services--t, #services--m, #dataflow, #dataflow--t, #dataflow--m) .card {
  border-color: var(--home-rule) !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.hv :is(#services, #services--t, #services--m) .bento-spotlight > span:last-child > span:first-child {
  color: var(--scena-ink, #1b1b23) !important;
}

.hv :is(#services, #services--t, #services--m) .bento-spotlight > span:last-child > span:last-child {
  color: var(--home-muted) !important;
}

.hv :is(#offer, #offer--t, #offer--m, .foot) {
  background: var(--home-charcoal) !important;
}

.hv :is(#offer, #offer--t, #offer--m) > .wrap > div:has(h3) > div {
  border-color: var(--home-dark-rule) !important;
  border-radius: 4px !important;
  background: #202326 !important;
  box-shadow: none !important;
}

.hv :is(#offer, #offer--t, #offer--m) > .wrap > div:has(h3) > div > span:first-child {
  padding-inline: 0 !important;
  background: transparent !important;
  color: #f2b8a5 !important;
}

.hv :is(#testers, #testers--t, #testers--m) .qrow > span {
  border: 0 !important;
  border-block-start: 1px solid var(--home-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hv :is(#testers, #testers--t, #testers--m) .qrow > span > span:first-child {
  align-items: flex-start !important;
  flex-wrap: wrap;
}

.hv :is(#testers, #testers--t, #testers--m) .qrow .mono {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #226756 !important;
}

.hv :is(#faq, #faq--t, #faq--m) :is(.fchip, .faqrow > button) {
  min-height: 44px;
}

.hv :is(#download, #download--t, #download--m) > .wrap > div:has(h2) {
  border-radius: 4px !important;
  background: var(--home-charcoal) !important;
}

.hv :is(#download, #download--t, #download--m) > .wrap > div:has(h2) > div:last-child > span > span:first-child {
  flex-basis: clamp(64px, 13vw, 96px) !important;
  color: #bdc1bf !important;
}

.hv .foot span[style*="linear-gradient"] {
  background: var(--home-accent) !important;
  box-shadow: none !important;
}

@media (max-width: 599.98px) {
  .hv .creator-reel-chapters { column-gap: 9px; }
}
